2017-10-13 6 views
0

ボブとアリスが1つの集中化されたsvnリポジトリを作成したとします。彼らは両方ともそこにb.txtというファイルを持っています。アリスはそれを編集し、最初にコピーをコミットしました。ボブはそれを編集/更新し、競合を認識しました。彼は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. 

アリスのファイルには何がありますか?ボブのファイルには何が入っていますか?

アリス:

This is going to be tricky 

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

ボブの

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はファイルの現在のリビジョンの番号を2つのパーティに置きます。このフォーマットは '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

答えて