将树干与分支与树干的分支合并到分支之间有什么区别?
我对使用svn
进行版本控制是相对较新的。我试图将分支机构上的最新发展合并到树干上。
为了此示例,让我们假设我的分支在修订R35357
上。该中继线位于修订R35486
。共同的祖先点或分支分离的点为r33285
。我正在尝试以下两个选项来了解合并过程。
选项1: - 将树干
的
svn co branch_url
cd above_checked_out_repository
svn merge trunk_url
分支
- 到
- 合并
我 我的分支可以通过TRUNK
保持分支更新。
选项2: - 将我的分支合并到躯干
我在这种情况下做以下步骤: -
svn co Trunk_url
cd above_checked_out_repository
svn merge branch_url
这是我得到的: -
- 84文本冲突
- 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:-
- 4 text conflicts
- 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:-
- 84 text conflicts
- 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论