Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing the Directory Structure in Subversion

Tags:

branch

svn

trunk

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)?

like image 743
kaybenleroll Avatar asked Sep 09 '08 20:09

kaybenleroll


People also ask

Can I move svn folder to another location?

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.

What is svn structure?

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/...


1 Answers

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").

like image 100
Blair Conrad Avatar answered Sep 22 '22 01:09

Blair Conrad