This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Binary search through CVS branch? (was basic-improvements call for testers)
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
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer