2017-10-13 77 views
0

假设Bob和Alice创建了一个集中的svn存储库。他们都有一个名为b.txt的文件。 Alice编辑它并首先提交副本。鲍勃然后编辑/更新它并意识到这是一场冲突。他做了svn diff命令,得到了这个:SVN显示diff命令混淆

This is going to be tricky. 

Yes it will be. 
It really will be. 
+<<<<<<<.mine 
+Bob tried to fix the file. 
.I'm sure. 
+======== 
+Alice is changing much. 
+I'm sure of that 
+ >>>>>>.r[5] 
+:(What happened? 

+Best of luck! 

Best of luck! 
+This is a mess. 

Alice的文件是什么? Bob的文件中有什么?

爱丽丝:

This is going to be tricky 

Yes it will be. 
It really will be. 
Alice is changing much. 
I'm sure of that 

Bob的

This is going to be tricky 

Yes it will be. 
It really will be. 
Bob tried to fix the file. 
I'm sure 
:(What happened? 

Best of luck! 
Best of luck! 
This is a mess 

有人能告诉我,如果我是正确的?

这是什么意思? >>>>>是什么意思? + ====是什么意思?我不知道这个资源

+0

概括地说,与添加'+'开头的行,那些以'-'被删除,并且'<< <<<<<' and '> >>>>>'之间的块是冲突(即它在两边都被改变了)。每一方在冲突块上进行的更改由行'=========='分隔。另外,在'<< <<<<<' and '> >>>>>>'标记的末尾,Subversion会将文件的当前修订版号放在双方中。该格式可以通过'patch' Unix工具来理解。 – axiac

+0

另请阅读:http://www.markusbe.com/2009/12/how-to-read-a-patch-or-diff-and-understand-its-structure-to-apply-it-manually/ – axiac

回答