Find revisions associated to a given file
Mathieu Clabaut
mathieu.clabaut at gmail.com
Mon Jul 9 09:44:30 CDT 2007
On 7/9/07, Giorgos Keramidas <keramida at ceid.upatras.gr> wrote:
>
> On 2007-07-09 12:32, Mathieu Clabaut <mathieu.clabaut at gmail.com> wrote:
> > Ok...
> > I certainly can do a bruteforce search like:
> >
> > hg log --template '{node}\n' myfile | while read ver; do hg cat -r $ver
> > myfile > /tmp/hgcat.$$; cmp /tmp/hgcat.$$ myreferencefile && echo "found
> > $ver"; done
>
> If you know parts of the filename, you can use:
Yes, I eventually use the above trick (I did know the filename.... I just
had to find the revision(s) where the file exactly match the one in
mercurial repo). It was not a so brute search as there was few modifications
done to this file in the history.
-mathieu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20070709/d6e1095e/attachment-0001.htm
More information about the Mercurial
mailing list