Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

Rep: Reputation: 2
How to update files with svn


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

~# svn checkout asterisk-

~# svn checkout -r 260345 asterisk-1.4-rev-260345

With the following results:

drwxr-sr-x 25 root src 4096 2010-12-13 12:57 asterisk-
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- i use svn import?

Old 12-13-2010, 07:56 PM   #2
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- folder. (If you try this, you're probably just building an unnecessary Rube-Goldberg.) For starters, you could tell the asterisk- to exclude that file, and link (preferably soft link) the asterisk-1.4-rev-260345 version into place. Then when you updated the asterisk- 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.


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:28 AM.

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