cat --follow

Matt Mackall mpm at selenic.com
Tue Dec 18 15:21:29 CST 2007


On Tue, Dec 18, 2007 at 09:35:33AM -0800, j w wrote:
> On Dec 17, 2007 3:12 PM, Matthieu Moy <Matthieu.Moy at imag.fr> wrote:
> >
> > 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").
> >
> 
> Maybe the -f option could take revision numbers ?
> But then the -f isn't consistent across commands (not that it is right
> now, since annotate treats it different from log as mpm pointed out)

It's actually consistent. log defaults to starting at the tip
(otherwise people would be awfully confused where their history had
gone when they checked out old versions) and annotate and various
other things work relative the working directory (for similar
reasons).

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list