From:       FUJISHIMA Satsuki <[EMAIL PROTECTED]>
 Subject:    cvs doesn't checkout correct revision in vendor branch with -D date
 Date:       Mon, 27 Nov 2000 02:23:00 +0900
 Message-Id: <[EMAIL PROTECTED]>

  | $ cvs co -D'11/12/2000 11:01:00 UTC' test
  | cvs checkout: Updating test
  | U test/VERSION
  | $ cat test/VERSION 
  | VERSION2
  | ### This is correct. ###
  | 
  | $ rm -r test

Did you remove the directory?

  | $ cd test; rm VERSION; cvs rm VERSION
  | cvs remove: scheduling `VERSION' for removal
  | cvs remove: use 'cvs commit' to remove this file permanently
  | $ cvs commit -m"good bye"
  | cvs commit: Examining .
  | Removing VERSION;
  | /home/k5/share/src/cvs/test/VERSION,v  <--  VERSION
  | new revision: delete; previous revision: 1.1.1.2
  | done
  | ### test/VERSION has gone away. The problem starts here. ###
  | 
  | $ cd ..
  | $ rm -r test
  | $ cvs co -D'11/12/2000 11:01:00 UTC' test
  | cvs checkout: Updating test
  | U test/VERSION
  | $ cat test/VERSION
  | VERSION1
  | $ cat test/CVS/Entries
  | /VERSION/1.1/Sat Nov 12 10:57:16 2000//D2000.11.12.11.01.00
  | ### This should be 1.1.1.2. ###

CVS resets a default branch to commit a imported file.
(Try "cvs log -h VERSION | grep branch:")
When using -D option, you can not specify a branch.
So, the result you get is legal.

--
KOIE Hidetaka <[EMAIL PROTECTED]>

cvs importしたあとにcvs commitすると RCSファイルのデフォルトブランチ属性がリセットされます。そのため、 cvs commit前にcheckoutするとベンダーブランチから取り出されますが、 commit後はトランクからになります。 そして-Dオプションを指定した場合は トランクから日時の条件に合うものを探してくることから あの結果は、いちおう仕様通りということになると思います。

Reply via email to