在 SVN 中重命名文件夹是个好主意吗?

发布于 2024-08-09 22:06:45 字数 1431 浏览 3 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

夏见 2024-08-16 22:06:45
svn help mv

move (mv, rename, ren): Move and/or rename something in working copy or repository.
usage: move SRC... DST

使用此命令而不是删除然后重新创建(乍一看更容易)的另一个原因是该文件/文件夹的 SVN 历史记录不会丢失。

svn help mv

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.

无所谓啦 2024-08-16 22:06:45

我做了几次这样的事情,没有遇到任何特殊问题。

据我所知,最重要的是在更改名称之前提交所有本地目录中的所有更改(特别是如果有多个开发人员)。更改项目名称后,路径也会更改,您将无法使用 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.

情徒 2024-08-16 22:06:45

可以使用

svn rename

,但是重命名后记得commit,否则可能会出现问题。有关更多详细信息,请阅读此

http://juicebar。 wordpress.com/2007/05/04/svn-rename-pitfalls-to-avoid/

You can use

svn rename

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/

九公里浅绿 2024-08-16 22:06:45

拥有本地副本的人可以搬迁。

我能想到的陷阱:

  • 将自动构建工具或 CI 服务器调整到正确的路径
  • 如果您使用 svn:externals 也要注意重定向它们
  • 以及 svn 服务器配置文件中定义的权限,请检查路径
  • 并且不要忘记提交/修订...挂钩脚本。

People having local copies can relocate.

Gotchas I can think of:

  • Adapt the automatic build tools or CI server to the right path
  • If you made use of svn:externals take care of redirecting them too
  • and the rights defined in the svn server config files, check the paths
  • And not to forget the commit/revision... hook scripts.
过气美图社 2024-08-16 22:06:45

我相信适当的命名非常重要,可以根据需要进行更改。

您必须在 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...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文