SVN:使用 TortoiseSVN 更新工作副本以排除外部内容?

发布于 2024-12-22 06:38:43 字数 602 浏览 3 评论 0原文

有没有办法使用 TortoiseSVN 更新工作副本以排除外部内容?

我有一份工作副本,已与外部人员一起检查过。我正在对包含路径进行一些更新,现在将这些外部文件放在不同的项目中。我想更新我当前的工作副本以排除外部内容 - 本质上是从我的本地副本中删除外部内容。

由于我的工作副本中存在大量更改,因此简单地删除并重新签出、忽略外部内容并不是一个有效的选择。

我正在使用 Tortoise SVN 1.7.2,使用 1.7.x 格式。

编辑:好吧,看起来我正在寻找的东西是不可能的。似乎“SVN 更新”将始终使用外部更新,即使使用“忽略外部”(--ignore-externals)签出存储库也是如此。

编辑2:好吧,找到了解决方案。似乎不是每个存储库标记它的方法。但在全球范围内: 'TortoiseSVN' => “设置”=> “高级”将“IncludeExternals”设置为 false。这将阻止“SVN Update”更新外部。看起来像是强制外部更新,我需要转到“更新到修订版...”这是可行的,因为这种情况不太可能发生。 (我有 5 次签出,只有 1 次需要外部,并且仅当道具更新时才需要。2 次仅在签出时需要一次)

Is there a way to update a working copy to exclude externals with TortoiseSVN?

I have a working copy that I checked out with externals. I'm doing some updates to my include paths and now have these external files in a different project. I want to update my current working copy up to exclude externals -- essentially deleting the externals from my local copy.

Due to a mountain of changes in my working copy, simply deleting and re-checking out, omitting externals, isn't an efficient option.

I'm using Tortoise SVN 1.7.2, using 1.7.x format.

EDIT: Okay, looks like what I'm looking for is not possible. Seems 'SVN Update' will always updates with externals, even if the repository is checked out with 'Omit Externals' (--ignore-externals).

EDIT 2: Alright, found a solution. Doesn't appear to be a way to tag it by each repository. But globally: 'TortoiseSVN' => 'Settings' => 'Advanced' set 'IncludeExternals' to false. That will stop 'SVN Update' from updating externals. Looks like to force external update, I'll need to go to 'Update to Revision...' This is doable, since that's the less likely situation.
(I have 5 check outs, and only 1 requires the externals, and only when the prop is update. 2 need them only once on check out)

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

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

发布评论

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

评论(3

桃扇骨 2024-12-29 06:38:43

svn up --ignore-externals 应该可以完成这项工作,您可以手动删除外部文件夹

svn up --ignore-externals should do the job, you can delete the external folders manually then

美羊羊 2024-12-29 06:38:43

在 TortoiseSVN 中,您可以通过选择“更新到修订版本...”并选中“忽略外部”复选框来更新而不使用外部。

In TortoiseSVN, you can update without using externals by choosing "Update to revision..." and checking the "omit externals" checkbox.

安静 2024-12-29 06:38:43

我意识到这是一个非常晚的回复,可能是 OBE,但是,如果我理解正确的话,解决您的问题的方法就是更新您的外部列表。

本质上,您有一堆外部内容被移至不同的项目,并且您想要更新您的工作副本以包含这些,正确吗?

您所要做的就是右键单击您签出的目录(或者如果您位于文件夹内,则右键单击 Windows 资源管理器中空白区域的任意位置),转到 Tortoise SVN >特性。编辑包含外部的属性并删除/添加您需要的任何目录。 然后对您的目录进行更新。它将不再包含之前包含的目录。

I realize that this is an extremely late response and probably OBE, however, the solution to your issue if I'm understanding it correctly was to just update your externals list.

Essentially, you had a bunch of externals that were moved to a different project and you wanted to update your working copy to not include these correct?

All you have to do is right click on your checked out directory (or just anywhere in the white space in Windows explorer if you're inside the folder), go to Tortoise SVN > Properties. Edit the property that includes your externals and remove/add whatever directories you need. Then do an update on your directory. It will no longer include the directories that were included.

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