move (mv, rename, ren): Move and/or rename something in working copy or repository.
usage: move SRC... DST
One more reason to use this command instead of deleting and then recreating(looks easier at first sight) is that SVN history for this file/folder won't be lost.
I did this kind of things several times and didn't get any special problems.
As much as I remember, most important thing is to commit all changes from all local directories (especially if there are several developers) before you change the name. After you change the project name, the path is changed and you cannot use the "switch" option of the TortoiseSVN and you will need to use "SVN Checkout" to start working on the project again.
发布评论
评论(5)
使用此命令而不是删除然后重新创建(乍一看更容易)的另一个原因是该文件/文件夹的 SVN 历史记录不会丢失。
One more reason to use this command instead of deleting and then recreating(looks easier at first sight) is that SVN history for this file/folder won't be lost.
我做了几次这样的事情,没有遇到任何特殊问题。
据我所知,最重要的是在更改名称之前提交所有本地目录中的所有更改(特别是如果有多个开发人员)。更改项目名称后,路径也会更改,您将无法使用 TortoiseSVN 的“切换”选项,并且需要使用“SVN Checkout”才能重新开始处理该项目。
I did this kind of things several times and didn't get any special problems.
As much as I remember, most important thing is to commit all changes from all local directories (especially if there are several developers) before you change the name. After you change the project name, the path is changed and you cannot use the "switch" option of the TortoiseSVN and you will need to use "SVN Checkout" to start working on the project again.
可以使用
,但是重命名后记得commit,否则可能会出现问题。有关更多详细信息,请阅读此
http://juicebar。 wordpress.com/2007/05/04/svn-rename-pitfalls-to-avoid/
You can use
but remember to commit after you rename, otherwise there might be issues. For further details read this
http://juicebar.wordpress.com/2007/05/04/svn-rename-pitfalls-to-avoid/
拥有本地副本的人可以搬迁。
我能想到的陷阱:
People having local copies can relocate.
Gotchas I can think of:
我相信适当的命名非常重要,可以根据需要进行更改。
您必须在 SVN 中重命名,而不仅仅是在您的环境中。
使用 TortoiseSVN,只需右键拖动鼠标即可完成此操作!棘手的操作:-)
还要注意影响脚本等...
I believe that appropriate naming is something important enough, as to change it as needed.
You have to rename in SVN, not only in your environment.
With TortoiseSVN, this happens with a mouse right-drag ! Tricky maneuver :-)
Take care of impacting also scripts and so on...