How do I create a branch in subversion that is deeper' than just the 'branches' directory?
I have the standard trunk
, tags
and branches
structure and I want to create a branch that is several directories deeper than the 'branches' tag.
Using the standard svn move method, it gives me a folder not found error. I also tried copying it into the branches folder, checked it out, and the 'svn move' it into the tree structure I wanted, but also got a 'working copy admin area is missing' error.
What do I need to do to create this?
For the sake of illustration, let us suppose I want to create a branch to go directly into 'branches/version_1/project/subproject' (which does not exist yet)?
Moving files and folders select the files or directories you want to move. right drag them to the new location inside the working copy. release the right mouse button. in the popup menu select Context Menu → SVN Move versioned files here.
The most common repository structure in Subversion is to have trunk, branches and tags directories for each project, like so: /project1/trunk/... /project1/branches/b1 /project1/branches/b2 /project1/branches/... /project1/tags/t1 /project1/tags/t2 /project1/tags/...
svn copy --parents http://url/to/subproject http://url/to/repository/branches/version_1/project/subproject
That should create the directory you want to put the subproject in (--parents
means "create the intermediate directories for me").
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With