Tim Long
Tim Long

Reputation: 13788

Restructuring a Subversion Repository without losing any history

Having asked this question and received a very satisfactory answer, I now wish in hindisght that I had made a different choice for the layout of my subversion repository.

My repo layout is currently:

/trunk
      /Project1
      /Project2
/branches
         /Project1
             /Branch1
             /Branch2
         /Project2
/tags
     /Project1
          /Tag1
          /Tag2
     /Project2

Of course now I wish I'd made the other decision:

/Project1
         /trunk
         /branches
         /tags
/Project2
         /trunk
         /branches
         /tags  

So the question now becomes: how can I make this transition, while keeping my version history intact? Is there a way of doing that?

Upvotes: 2

Views: 3697

Answers (2)

manojlds
manojlds

Reputation: 301307

You just have to do svn move Your history will remain intact, but of course, new revisions will be added for every move.

svn move http://server/repo/branches/Project1/ http://server/repo/Project1/branches/Branch1 -m "Moving branch1 of project1"

The above is server side move ( rename )

http://svnbook.red-bean.com/en/1.4/svn.ref.svn.c.move.html

Upvotes: 4

S.Lott
S.Lott

Reputation: 391952

Yes. Use svn move (or svn rename)

Upvotes: 1

Related Questions