hg log -f -r : foo.cpp gives an error

Matt Mackall mpm at selenic.com
Mon Jul 20 19:14:30 UTC 2015


On Mon, 2015-07-20 at 14:41 -0400, Bob Eby wrote:
> hg log -r "follow('/full/repo/path/foo.cpp')"
> 
> Seems to be working (with or without reverse()).
> The no output when I just typed in the file name confused me at first.
> hg log -r "file('foo.cpp')" was working fine, but follow() wasn't
> behaving the same way.

Are you in the root of your repository? Filenames are always relative to
where you are in your repo. You can use "path:foo.cpp" to get a
repo-absolute path. See "hg help patterns".

> I think I can modify my script to put the full repo path in instead of
> just the file name.
> 
> It still seems a little bit odd that in version 3.3.3 it worked as expected.

Still? This is the first time you mentioned 3.3 or regression.

https://en.wiktionary.org/wiki/bury_the_lede

For other issues, a statement like the above will often get us to
promptly change the behavior back. But as it happens, we've already
analyzed the 3.3 behavior here and decided it was doing something
nonsensical because it was in no way prepare to combine these two
options and thus any resemblance to any sort of sensible behavior was
just luck.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial mailing list