[Top][All Lists]

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

RE: Checking out a branch with -D

From: Jim.Hyslop
Subject: RE: Checking out a branch with -D
Date: Mon, 12 Jul 2004 16:03:13 -0400

Neil Carlson wrote:
> I have the following scenario.  A new file foo.c was added to the
> head on Apr 1.  On Jun 1 changes on the head were merged to a branch
> MY_BRANCH that existed prior to Apr 1; in particular foo.c was added
> to the branch.  I now want to recover a working copy of the branch
> as it existed on May 1.  I check out a copy with the command:
>       cvs co -r MY_BRANCH -D "2004-05-01" my_module
> For some reason I'm getting a copy of foo.c, when foo.c was not part
> of the branch at that time.  Is this the way it's supposed to work?
Yes, because -D xxx means "the latest revision before xxx". If you want
*just* that date, try

Actually, it shouldn't really be such a big issue, should it? Your makefiles
will just ignore the file.

Jim Hyslop
Senior Software Designer
Leitch Technology International Inc. (
Columnist, C/C++ Users Journal (

reply via email to

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