info-cvs
[Top][All Lists]
Advanced

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

RE: Checking out a branch with -D


From: Neil Carlson
Subject: RE: Checking out a branch with -D
Date: Tue, 13 Jul 2004 08:05:33 -0600

On Mon, 2004-07-12 at 14:03, Jim.Hyslop wrote:
> 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
> -D"2004-05-01<2004-05-02".

Good idea, but unfortunately cvs won't swallow it; it seems to only
accept single dates (and two -D options don't seem to work either).

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

Well it depends on how the build system is designed.  In my case, it
turns out that these 'extra' files aren't ignored.

So it sounds like cvs is unable to reconstruct the exact state of
a branch on a particular date (-D) short of having the branch tagged
on that date.  True?

-Neil
-- 
Neil Carlson <address@hidden>
Los Alamos National Laboratory





reply via email to

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