如何查明分支是否已合并到主干中?

发布于 2024-12-22 13:25:41 字数 136 浏览 1 评论 0原文

我正在尝试清理 svn 树。有一个主干目录和一个分支目录,其中包含一个名称为“main-branch”的文件夹。我想知道它是否已经合并到主干中。

我该怎么做? svn mergeinfo 可靠吗,因为它什么也没显示?

I'm trying to clear up an svn tree. There's a trunk directory and a branches directory, containing a folder with the hopeless name "main-branch". I want to find out if it was already merged into the trunk.

How can I do this?
Is svn mergeinfo reliable, because it shows nothing?

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

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

发布评论

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

评论(1

半边脸i 2024-12-29 13:25:42

只要使用 Subversion 的人是可靠的,Subversion 中的合并信息就是可靠的。这些是可能出错的地方:

  • 如果您使用过 1.5 之前的 Subversion,则没有 mergeinfo。那么该信息就会丢失。
  • 如果进行合并的人在错误的目录上进行了合并,则合并信息将位于其他位置。您可以检查可能进行合并的所有目录。
  • 因为 mergeinfo 只是一个 Subversion 属性,所以您可以自由更改它(当然然后提交它)。这是不合理的,因为你需要采取额外的行动,而已经采取行动的人会记住它。

请参阅mergeinfo 文档 ;有一些选项可以帮助您找到您想要查看的信息。最合理的设置是手动合并(由真人完成,而不是 Subversion),并且没有可用的合并信息。

The mergeinfo in Subversion is reliable, as long as the people working with Subversion are reliable. These are the things that could go wrong:

  • If you have worked with Subversion before 1.5, there is no mergeinfo. So that information is lost then.
  • If the people that have done the merge have done it on the wrong directory, the mergeinfo will be located somewhere else. You could check all directories where a merge could be possibly been done.
  • Because mergeinfo is just a Subversion property, you are free to change that (and of course commit it then). This is not reasonable, because there you need additional actions, and the people that have done that would remember it.

See the documentation to mergeinfo; there are some options how to find the information you want to see. The most reasonable setting is that the merge was done by hand (by a real person, not by Subversion), and that there is no mergeinfo available.

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