如何在 TortoiseSVN 中调整工作副本的服务器路径?

发布于 2024-12-18 22:26:37 字数 482 浏览 2 评论 0原文

我有一个具有以下布局的存储库:

//server/wrongname/superfluousdir/trunk/...

现在我已将 trunk 移动到存储库的根目录(使用 TortoiseSVN 存储库浏览器)并更改了存储库名称(使用 SVNManager):

//server/correctname/trunk/...

我有一个工作副本包含 trunk 中所有内容的文件夹。它有几个已更改的文件。我告诉 TortoiseSVN 通过 Relocate... 命令使用新的存储库名称。

但是,如果我现在尝试进行提交,它仍然会提交到

//server/correctname/superfluousdir/trunk/...

如何更正它应该提交的路径?

I have had a repository with the following layout:

//server/wrongname/superfluousdir/trunk/...

Now I have moved trunk to the root of the repository (using the TortoiseSVN repo browser) and changed the repository name (using SVNManager):

//server/correctname/trunk/...

I have a working copy folder which contains everything in trunk. It has several changed files. I told TortoiseSVN to use the new repository name with the Relocate... command.

However, if I try to do a commit now, it will still commit to

//server/correctname/superfluousdir/trunk/...

How do I correct the path to which it should commit?

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

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

发布评论

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

评论(1

月牙弯弯 2024-12-25 22:26:37

我更习惯使用命令行执行此操作,但听起来您的重新定位错误。命令行语法为

svn switch --relocate //server/wrongname/superfluousdir/ //server/correctname/

from-path, to-path。我猜乌龟把两者搞混了,而且确实做到了

svn switch --relocate //server/wrongname/ //server/correctname/

,即路径错误。

我认为此时您应该尝试切换选项:这应该为您提供 //server/ Correctname/superfluousdir/trunk/ ,您可以将其编辑为正确的路径。

I'm more used to doing this with the command-line, but it sounds like you got the relocate wrong. The command line syntax would be

svn switch --relocate //server/wrongname/superfluousdir/ //server/correctname/

i.e. from-path, to-path. I guess Tortoise got the two mixed up and really did

svn switch --relocate //server/wrongname/ //server/correctname/

i.e. with the wrong from path.

I think at this point you should try the switch option: that should give you //server/correctname/superfluousdir/trunk/ which you can edit to the correct path.

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