i hate cvs
someone want to tell me how to get a copy of our source tree from, say, May 19th? cvs up -D'19 May 2001' is not the answer because it gets files off the vendor branch which is useless.
why aren't there any good source control tools?
Signature · 1 line
Revolutions do not require corporate support.
Hi Matthew,
without guarantee - but I think you first need to
"cvs co -A" and then "cvs up -D20010519"
Helge
Quoted 5 lines · Matthew Wilcox
someone want to tell me how to get a copy of our source tree from, say, May 19th? cvs up -D'19 May 2001' is not the answer because it gets files off the vendor branch which is useless.
why aren't there any good source control tools?
Quoted 4 lines
someone want to tell me how to get a copy of our source tree from, say, May 19th? cvs up -D'19 May 2001' is not the answer because it gets files off the vendor branch which is useless.
cvs -rHEAD -D'19 May 2001'
Theoretically both a branch and a date are required because it's quite common to have two or more branches with active files on them. I'm surprised CVS didn't implicitly do the '-rHEAD' thing to select the right branch, but not terribly surprised. The specific case of raw.h mentioned in IRC is one I'll be looking at more closely...
-P
Quoted 4 lines
someone want to tell me how to get a copy of our source tree from, say, May 19th? cvs up -D'19 May 2001' is not the answer because it gets files off the vendor branch which is useless.
Well there appear to be some interesting CVS "features" here which are independent of the magic safe-cvsimport stuff we've done:
$ date > e $ cvs add e cvs add: scheduling file `e' for addition cvs add: use 'cvs commit' to add this file permanently $ cvs commit -mno-message e RCS file: /tmp/cvs/b/e,v done Checking in e; /tmp/cvs/b/e,v <-- e initial revision: 1.1 done $ cvs up -rHEAD -Dnow e cvs update: e is no longer in the repository $ cvs up -Dnow e U e $ cvs -v Concurrent Versions System (CVS) 1.11 (client/server)
So it looks like specifying date and HEAD branch (alias "trunk") together is hosed (other date+branches i checked work fine). If it looks easy I'll submit this to the CVS folks.
I can fix our repository so willy's initial command works properly (without the -rHEAD I proposed) by commiting an unchanged 1.2 revision for certain files.
They will probably require back-dating if we want retroactive date-based check-outs to work and that will probably require me to have exclusive access to pehc for a bit. Another way to solve the problem is to un-import 2.2.4 from the vendor branch (untested but I think it'll work). Suggestions?
-P