How can I move my repository in TortoiseSVN?

徘徊边缘 提交于 2019-11-29 19:55:31

问题


I was working with a single repository for a while. Now, I would like to create another repository for a different programming environment (that uses a different language and project altogether).

To do this in a structured way, I would prefer to have one root directory where I would be able to collect different repositories. But I can not find information on how to move a repository into a different folder with TortoiseSVN. The "relocate" option seems only to work for items within an repository.


回答1:


The definitive pointer for Subversion is the red book. All of the TortoiseSVN commands map to the commands described there.

It's likely that you can just move the repository on the filesystem and make the necessary server changes to keep the working copies' URLs up to date. In particular, see this section of the red book.




回答2:


Relocate is exactly the way to go. Not for the actual relocation, but afterwards to show TortoiseSVN the new location.

  1. Create a new repository where you want it.
  2. Dump your repository and load it into the new repository.
  3. Relocate (rewrite the URLs).



回答3:


As Michael said, your best bet is to read the SVN book. I'd also recommend the TortoiseSVN manual for information on server setup on Windows.

Some comments though:

  • You don't need a different repository if you structure your single repository in the appropriate manner. An example is the Apache SVN repository. Having a single repository makes for easier maintenance, but if you want your revision numbers sequential for each project, then the only way is separate repositories (not a common requirement).

  • If you decide that separate repositories are the way to go, and are using svnserve, then make use of the --root or -r option. It also sounds like you want to create a new repository, rather than relocating an existing repository, so a dump/load probably isn't the appropriate action.

  • You can move repositories around on the same server, without worrying about interfering with client working copies (after stopping the SVN server of course!), but this assumes your SVN server is configured correctly i.e. knows about the change. This has nothing to do with TortoiseSVN. TortoiseSVN is an SVN client, the only server operation TortoiseSVN performs is repository creation (for convenience).



来源:https://stackoverflow.com/questions/631164/how-can-i-move-my-repository-in-tortoisesvn

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!