LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-13-2010, 07:51 AM   #1
danndp
Member
 
Registered: Nov 2010
Posts: 51

Rep: Reputation: 2
How to update files with svn


Hello,

i have downloaded from an svn repository, 2 projects like this:


~# svn checkout http://svn.digium.com/svn/asterisk/tags/1.4.24.1 asterisk-1.4.24.1

~# svn checkout -r 260345 http://svn.digium.com/svn/asterisk/branches/1.4 asterisk-1.4-rev-260345

With the following results:


drwxr-sr-x 25 root src 4096 2010-12-13 12:57 asterisk-1.4.24.1
drwxrwsr-x 10 root src 4096 2010-12-13 12:57 .
drwxr-sr-x 25 root src 4096 2010-12-13 12:57 asterisk-1.4-rev-260345

What i need to do is to update using svn command the file res_musiconhold.c (only this file located in the res/ directory of the proyect "asterisk-1.4-rev-260345") to the asterisk-1.4.24.1...should i use svn import?

Thanks
 
Old 12-13-2010, 07:56 PM   #2
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
Import is for sending new files to the svn server, not for receiving files on the client, nor for adding files to an existing branch.

I don't see why you don't just copy the file and hope for the best. Why do you insist on using svn to move it? Are you a developer migrating a file, or a user trying to custom compile features that you want/need?

Either I don't understand what you're asking, or you're almost certainly trying to do something more complex than you really need to.

There are convoluted things you could do if you always want the asterisk-1.4-rev-260345 version of res_musiconhold.c in the asterisk-1.4.24.1 folder. (If you try this, you're probably just building an unnecessary Rube-Goldberg.) For starters, you could tell the asterisk-1.4.24.1 to exclude that file, and link (preferably soft link) the asterisk-1.4-rev-260345 version into place. Then when you updated the asterisk-1.4.24.1 version, it would update everything except res_musiconhold.c, which would update when you ran update on asterisk-1.4-rev-260345.

This is all assuming that file is fungible between these two versions. It might not compile at all.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
copy svn working dir without svn hidden dirs and files? erinspice Linux - Software 4 03-29-2011 06:58 PM
Svn client on FC10: remote SVN server update errs: timed out waiting for srvr ... Amol Tupe Linux - Software 0 10-01-2010 04:25 AM
not able to update my metasploit modules using svn-update BlueSkull Linux - Newbie 1 03-29-2010 10:34 AM
SVN tagging: How to update working copy from a tagged release kenneho Programming 2 01-08-2010 04:46 PM
cannot update svn folder: "unversioned directory of the same name already exists sneakyimp Linux - Software 2 01-01-2010 02:59 PM


All times are GMT -5. The time now is 06:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration