hg log --follow <filename> not working as expected

Ludovic Chabant ludovic at chabant.com
Mon Jan 18 22:42:13 CST 2016


> If I run `hg log --follow 3`, I’d expect to see all revisions listed, but
> I only see the revision in which I add 3. Am I misunderstanding how
> --follow works, or is this unexpected behaviour?

I'm using Mercurial 3.6.3 also (on MacOS if that makes any difference),
and I repro'ed your steps exactly. I get the expected behaviour, with
all revisions being printed as you originally expected.

The usual suspect for this kind of thing is your ~/.hgrc, which maybe
defines some weird aliases or defaults, or includes a faulty extension.
Can you try again with no custom config files? (I think temporarily
setting the HGPLAIN environment variable also does that but I've never
tried... more here:
https://www.selenic.com/mercurial/hg.1.html#environment-variables)

-- 
 l u d o .
 . 8 0 17 80


More information about the Mercurial mailing list