hg annotate does not follow renaming via hg mv

Uwe Brauer oub at mat.ucm.es
Sat Jul 25 17:29:31 UTC 2020


Hi

Please look at

hg init
echo "First" > test.org
hg add test.org
hg commit  -m "First"
echo "Second" >> test.org
hg commit  -m "Second"
echo "Third" >> test.org
hg commit  -m "Third"
echo "Forth" >> test.org
hg commit  -m "Forth"
hg annotate test.org -r 3
hg mv test.org testnew.org
hg commit  -m "Renamed file test.org to testnew.org"
hg annotate testnew.org -r 3

The last command fails since testnew.org was not in rev3 (it was but
with a different name). I hoped hg annotate would following renaming but
it does not or what do I miss.


Hg help annotate 

Tells me 

--no-follow           don't follow copies and renames

So I understand the default behavior is to follow.

I, unfortunately do a lot of renaming and hg annotate is very helpful.

Regards

Uwe Brauer 



More information about the Mercurial mailing list