Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN Copying Trunk To Branch, Copies Trunk Folder Too?

Tags:

svn

I am using the following code to copy a trunk to a branch:

svn copy svn://web/path/to/trunk \svn://web/path/to/branches/dev -m "Creating a dev branch of trunk"

It seemed to work fine except it moved the folder trunk along with it. For example:

trunk/somefile.html was copied to branches/dev/trunk/somefile.html

Is this normal? I assume that it shouldn't be like that and would like to know how to copy the branch correctly.

Thanks.

like image 237
fanfavorite Avatar asked Sep 16 '11 03:09

fanfavorite


1 Answers

I suppose you created the branch ( basically a folder ) named dev under branches? If you had done that, it will copy trunk under dev. If the dev was not existing already, it will be like trunk folder was copied as dev folder, the way you expect it to be.

like image 84
manojlds Avatar answered Oct 01 '22 08:10

manojlds