svn copy

satheesh
satheesh
Hi,    I need to copy the entire directory to another Url. (svn copy  http://10.0.3.2:8080/svn/New/trunk/Test http://10.0.3.2:8080/svn/New/trunk/Test7)    its working properly(Entire Test directory copied to Test7 successfully at first time).    If i modify some of the files in 'Test' directory and again copy 'Test' to 'Test7' directory. It will copy the 'Test' directory under the 'Test7' directory like 'Test7/Test'. If i again try to copy the 'Test' Directory to 'Test7' dirctory, it shows "svn: E160020: Path 'Test' already exists" Error.    But i want to commit the modified files only to the 'Test7' directory when i copy at second time. How can i do this ?      Thanks in Advance.

Last updated

philip
philip
In Subversion you have to choose which file is going to be the ancestor for the modified files in Test7. If the ancestor is going to be the previous file in Test7 then you have to modify the file in Test7 by sending a text change. The usual way to do this is via a working copy merge, although you could write code to drive the RA layer directly. If the ancestor is going to be the file in Test then you have to replace the file in Test7 by sending delete and copy commands, you could script svnmucc to do this or you could write code to drive the RA layer directly.

1-2 of 2

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.