SVN合并与树冲突问题

发布于 2024-09-11 17:21:25 字数 341 浏览 12 评论 0原文

我在这个网站上看到过其他帖子的答案,但我认为我的情况略有不同。我的情况如下:

  1. 主干和分支b1
  2. 在某个点上,b1被“复制”到主干,因为主干是多余的,并且分支具有所有相关功能开发
  3. 在b1上继续,而主干但部分主干开发涉及将一些文件移动到不同的b1 上也存在的位置
  4. ,所以现在我尝试将 b1 合并到主干,它抱怨树冲突,我理解这一点 - 由于主干上的移动,主干上的文件丢失。

有些帖子表明这是 SVN 1.5 问题,但我确信我已将存储库升级到 1.6+。我如何确认这一点?此外,如何解决树冲突问题。

我正在使用 TortoiseSVN v1.6.8。

I have seen other posts on this site with answers, but I think I have a slightly different scenario. My situation is as follows:

  1. trunk and branch b1
  2. at a certain point, b1 was 'copied' to trunk as trunk was redundant and branch had all relevant functionality
  3. dev continued on b1, and trunk but part of trunks dev involved moving some files to different locations that also exist on b1
  4. so now I try to merge b1 to trunk and it complains about tree conflicts, which I understand - files missing on trunk because of the moves on trunk.

Some posts suggest this is a SVN 1.5 issue, but I'm sure I've upgraded the repos to 1.6+. How do I confirm this? And furthermore, how do I fix the tree conflict issue.

I'm using TortoiseSVN v1.6.8.

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

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

发布评论

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

评论(1

花想c 2024-09-18 17:21:25

阅读 SVN 书籍。
归结为:当您创建分支时,可能有两种合并场景:“追赶”和“重新集成”。
追赶合并是指将更改从主干拉到分支中。您可以(并且应该)经常这样做,以确保您的分支不会与主干偏离太多。
重新集成分支是将分支合并回主干时发生的情况。由于颠覆跟踪合并和更改的方式,此后分支将被视为损坏。如果您需要继续在该分支中工作,Subversion 书籍建议您在重新集成合并后立即删除该分支,然后从合并的主干重新创建它。

Read the SVN book.
It boils down to this: When you create a branch, there can be two merge scenarios, 'catch-up' and 'reintegrate'.
A catch-up merge is when you pull changes from the trunk into your branch. You can (and should) do this a lot, to make sure your branch doesn't diverge from the trunk too much.
A reintegrate branch is what happens when you merge a branch back into the trunk. Because the way subversion tracks merges and changes, the branch is to be considered corrupt after this. If you need to continue working in that branch, the subversion book recommends you delete the branch right after the reintegrate merge and then re-create it from the merged trunk.

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