cat --follow

Matthieu Moy Matthieu.Moy at imag.fr
Mon Dec 17 23:12:45 UTC 2007


"j w" <jwdevel at gmail.com> writes:

> On Dec 17, 2007 9:29 AM, Matt Mackall <mpm at selenic.com> wrote:
>>
>> The file 'x' in tip may be unrelated to the file 'x' in your working
>> directory due to renames, deletions, etc. So when you say 'hg cat -fr
>> 0 x', which 'x' are you talking about?
>>
>> When you do 'hg log -f', you follow the ancestry of tip (or the
>> specified revision). When you do 'hg annotate -f x', you follow the
>> history of the revision in the working directory.
>>
>
> I was thinking of following from tip (or revision specified),

It's hard to get a consistant UI for the "revision specified" case,
since hg cat already has a -r option, which is obviously different
from the one you want (otherwise, "hg cat -r R f foo" would mean "give
me the file in revision R which was named foo in revision R").

-- 
Matthieu



More information about the Mercurial mailing list