将树干与分支与树干的分支合并到分支之间有什么区别?

发布于 2025-01-25 23:19:42 字数 1043 浏览 2 评论 0原文

我对使用svn进行版本控制是相对较新的。我试图将分支机构上的最新发展合并到树干上。

为了此示例,让我们假设我的分支在修订R35357上。该中继线位于修订R35486。共同的祖先点或分支分离的点为r33285。我正在尝试以下两个选项来了解合并过程。

选项1: - 将树干

svn co branch_url
cd above_checked_out_repository
svn merge trunk_url

分支

  1. 合并

我 我的分支可以通过TRUNK保持分支更新。

选项2: - 将我的分支合并到躯干

我在这种情况下做以下步骤: -

svn co Trunk_url
cd above_checked_out_repository
svn merge branch_url

这是我得到的: -

  1. 84文本冲突
  2. 500棵树冲突

,请有人解释为什么这两个步骤行为如此行为如此有不同的方式吗?为什么deltas或两个选项之间的总差异如此不同?

我还尝试了以下内容: - 合并TRUNK与我的本地副本(选项1 )之后,我下载了一个新鲜的中继副本,并试图比较包含TRUNK 和my_current_branch使用meld。我得到了一些差异(大约10个),这是正确的,因为我添加了几个文件并在其他一些文件中进行了更改?

那么,为什么 option2 行为如此不同,并且有很多差异?

另外,树木冲突到底是什么?如何解决它们?有人可以指向适当的资源吗?

I am relatively new to using the SVN for version control. I am trying to merge the recent development on my branch to Trunk.

For sake of this example, let us suppose that my branch is at revision r35357. The trunk is at revision r35486. The common ancestral point or the point from where the branch separated is r33285. I am trying the following two options to understand the merge process.

Option 1:- Merge Trunk to my branch

I use the following steps:-

svn co branch_url
cd above_checked_out_repository
svn merge trunk_url

Here is what I get:-

  1. 4 text conflicts
  2. 0 tree conflicts

I would also like to mention that I do this step quite often in my branch to keep my branch updated with the Trunk.

Option 2:- Merge my branch to the Trunk

I do the following steps in this case:-

svn co Trunk_url
cd above_checked_out_repository
svn merge branch_url

Here is what I get:-

  1. 84 text conflicts
  2. 500 tree conflicts

Can someone please explain why these two steps behave so differently? Why the deltas or the total difference between two options are so different?

I also tried the following:-
After merging Trunk with my local copy (Option 1), I downloaded a fresh copy of Trunk and tried to compare the differences between the directory containing Trunk and my_current_branch using Meld. I got a few differences (approx 10) which is right because I added a couple of files and made changes in a few other?

Then, why the Option2 behaves so differently and has so many differences?

Also, what exactly is a tree conflict and how to resolve them? Can someone point to an appropriate resource?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文