开发者

Relocate directory within repository

开发者 https://www.devze.com 2022-12-19 05:39 出处:网络
I\'m still getting my head around the finer points of Subversion. I have a repository structure like so:

I'm still getting my head around the finer points of Subversion.

I have a repository structure like so:

/trunk
/tags
/branche开发者_如何转开发s

and one local working copy that is a checkout of /trunk

I would like to move those directories within the repository to

/website/trunk
/website/tags
/website/branches

To make way for a number of other projects that need to be in that repository as well.

What is the most clever way to do this, in terms of the log history staying intact?

What would I do to re-connect my local working copy with the new directory?


  1. Commit all changes before doing this
  2. Do a checkout of the repository's root (the path containing trunk, tags, branches)
  3. Create the folder "website" and "svn add" it (precondition for svn move)
  4. SVN move the other three folders into it
  5. Commit
  6. SVN update all working copies you have


svn move the directories, and then svn switch your working copy to the new "trunk".

0

精彩评论

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