我在 SVN 中遇到树冲突。有点奇怪!
我有标准的主干、分支、标签结构,并遵循多团队模型。Branch1、Branch2 是从 Trunk 和 active 并行创建的
遵循的步骤:
1 Branch1 Work
.:newfile.c
添加并提交Branch1
2 Merge
.:从 Branch1 -> Trunk(成功;文件添加到 Trunk)
3 Merge
.:从 Trunk -> Branch2 向下合并。(成功;在 Branch2 中添加文件)
4. Branch2 Work
:执行常规的 Branch2 工作并提交。
5. Merge
: 从 Branch2 到 Trunk => 这一步会引发 Tree-conflict fornewfile.c
newfile.c
Branch2 团队遇到了他们根本没有接触过的树冲突。为什么会这样。请问有什么建议可以避免吗?这个问题困扰着我很多。
PS:我使用了 TortoiseSVN 客户端 1.6.0 和 TortoiseSVN 1.6.16 - 32 位(分别使用)
合并错误(以上步骤 5):
>svn merge file:///E:/Treeconflict_test/svnRepo/Branches/Br2 Trunk
--- Merging r3 through r8 into 'Trunk':
C Trunk\src\ARTransactionFeeDto2.java
U Trunk\pom.xml
G Trunk
Summary of conflicts:
Tree conflicts: 1
>svn status Trunk
M Trunk
C Trunk\src\ARTransactionFeeDto2.java
> local obstruction, incoming add upon merge
M Trunk\pom.xml
PFB svn repo 日志(以上步骤 1-4):
>svn log -v file:///E:/Treeconflict_test/svnRepo
------------------------------------------------------------------------
r8 | rohit | 2013-03-05 16:30:35 +0530 (Tue, 05 Mar 2013) | 1 line
Changed paths:
M /Branches/Br2/src/ARTransactionFeeDto2.java
br2 branch changes
------------------------------------------------------------------------
r7 | rohit | 2013-03-05 16:29:34 +0530 (Tue, 05 Mar 2013) | 1 line
Changed paths:
M /Branches/Br2
M /Branches/Br2/pom.xml
A /Branches/Br2/src/ARTransactionFeeDto2.java (from /Trunk/src/ARTransactionF
eeDto2.java:6)
dowm-merge from Trunk to branch-Br2
------------------------------------------------------------------------
r6 | rohit | 2013-03-05 16:26:56 +0530 (Tue, 05 Mar 2013) | 1 line
Changed paths:
M /Branches/Br2/pom.xml
br2 branch changes
------------------------------------------------------------------------
r5 | rohit | 2013-03-05 16:22:26 +0530 (Tue, 05 Mar 2013) | 1 line
Changed paths:
M /Trunk
M /Trunk/pom.xml
A /Trunk/src/ARTransactionFeeDto2.java (from /Branches/Br1/src/ARTransactionFeeDto2.java:4)
up-merge from branch-Br1 to Trunk
------------------------------------------------------------------------
r4 | rohit | 2013-03-05 16:20:48 +0530 (Tue, 05 Mar 2013) | 1 line
Changed paths:
M /Branches/Br1/pom.xml
A /Branches/Br1/src/ARTransactionFeeDto2.java
br1 changes
------------------------------------------------------------------------
r3 | rohit | 2013-03-05 16:19:07 +0530 (Tue, 05 Mar 2013) | 1 line
Changed paths:
A /Branches/Br2 (from /Trunk:2)
created branch br2
------------------------------------------------------------------------
r2 | rohit | 2013-03-05 16:18:57 +0530 (Tue, 05 Mar 2013) | 1 line
Changed paths:
A /Branches/Br1 (from /Trunk:1)
created branch Br1
------------------------------------------------------------------------
r1 | rohit | 2013-03-05 16:18:13 +0530 (Tue, 05 Mar 2013) | 1 line
Changed paths:
A /Branches
A /Tags
A /Trunk
A /Trunk/pom.xml
A /Trunk/src
A /Trunk/src/ARTransactionFeeDelegateResponse.java
A /Trunk/src/ARTransactionFeeDto.java
A /Trunk/src/ResponseARTransFeeDtlsDto.java
initial commit Trunk
------------------------------------------------------------------------