Binary search through CVS branch? (was basic-improvements call for testers)

Janis Johnson janis187@us.ibm.com
Wed Dec 18 12:12:00 GMT 2002


On Wed, Dec 18, 2002 at 11:29:39AM -0200, Alexandre Oliva wrote:
> On Dec 17, 2002, Janis Johnson <janis187@us.ibm.com> wrote:
> 
> > Is there any way, other than knowing all of the revisions, to get
> > all files from a branch for a particular date?
> 
> Even without a patched CVS server, there is a way, but I don't find it
> particularly beautiful:
> 
> cvs co -r branch 
> cvs up -j branch -j branch:DATE
> 
> You can probably add the -j args to co, but I've never done that, so
> I'm not sure this works.  Anyway, the end result is a tree that, if
> committed, would make the branch look exactly like it was at DATE.
> Note that this means you should NOT commit it unless you really mean
> to (i.e., this is best done with a read-only CVS login).
> 
> You can then do a binary search using additional commands such as:
> 
> cvs up -j branch:PREV_DATE -j branch:NEXT_DATE

This really works!  I'll add it to my regression-hunting HOWTO.

Janis



More information about the Gcc mailing list