开发者

Restructuring a Subversion Repository without losing any history

开发者 https://www.devze.com 2023-03-03 12:22 出处:网络
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.

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?


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


Yes. Use svn move (or svn rename)

0

精彩评论

暂无评论...
验证码 换一张
取 消