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行追加されたかのように見える。
CVS備忘録
cvs update -r HEADとcvs update -Aは違う。前者はHEADのSitckyタグがつく。
$ cvs status cvs status: Examining . =================================================================== File: test.txt Status: Up-to-date ... Sticky Tag: HEAD (revision: 1.1.1.1) ...
HEADはリリースタグと思われているようで、このような状態だと変更できなくなる。
$ ls >foo.txt $ cvs add foo.txt cvs add: cannot add file on non-branch tag HEAD
ワーキングコピーをブランチにupdateしてから、HEADとdiffすると、HEADをブランチの先端と認識しているように見える(cvsのバグなんだろうか)。
$ cvs update -A cvs update: Updating . $ ls CVS/ test.txt* $ cvs update -r RB_1_0 cvs update: Updating . U test.txt U test2.txt U test3.txt $ cvs diff -r HEAD -r RB_1_0 cvs diff: Diffing . ... 何も表示されない。





