svnのdiff
ちょっといやなクセを発見。
$ svn update -r2 リビジョン 2 です。 $ ls test.txt*
$ svn update -r3 A test2.txt U test.txt リビジョン 3 に更新しました。 $ ls test.txt* test2.txt*
test2.txtはリビジョン3で新規追加されたファイル。diffをとると、
$ svn diff -r2:3 Index: test2.txt =================================================================== --- test2.txt (リビジョン 0) +++ test2.txt (リビジョン 3) @@ -0,0 +1 @@ +Test2 Index: test.txt =================================================================== --- test.txt (リビジョン 2) +++ test.txt (リビジョン 3) @@ -1 +1,2 @@ Test1 +Test2
あたかも最初の行に1行追加されたかのように見える。





