bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: cvs doesn't checkout correct revision in vendor branch with -D date


From: 鯉江英隆
Subject: RE: cvs doesn't checkout correct revision in vendor branch with -D date
Date: Tue, 28 Nov 2000 20:29:51 +0900

 From:       FUJISHIMA Satsuki <k5@cheerful.com>
 Subject:    cvs doesn't checkout correct revision in vendor branch with -D date
 Date:       Mon, 27 Nov 2000 02:23:00 +0900
 Message-Id: <867l5qwslh.wl@cheerful.com>

  | $ 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 <hide@koie.org>

cvs importしたあとにcvs commitすると
RCSファイルのデフォルトブランチ属性がリセットされます。そのため、
cvs commit前にcheckoutするとベンダーブランチから取り出されますが、
commit後はトランクからになります。

そして-Dオプションを指定した場合は
トランクから日時の条件に合うものを探してくることから
あの結果は、いちおう仕様通りということになると思います。

reply via email to

[Prev in Thread] Current Thread [Next in Thread]