cat --follow [was: extdiff --git ?]
Matt Mackall
mpm at selenic.com
Mon Dec 17 11:29:41 CST 2007
On Mon, Dec 17, 2007 at 09:18:55AM -0800, j w wrote:
> On Dec 17, 2007 7:55 AM, Matt Mackall <mpm at selenic.com> wrote:
> >
> > Where are you following from? The current directory? What if you want
> > to follow from a file in another revision?
> >
>
> I'm not sure I follow (no pun intended).
> What do you mean by "follow from a file in another revision"?
>
> It seems like it should work in any case that 'log -f' does.
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.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list