tags:

views:

79

answers:

1

I remember in SVN, I can rename a file from foo.txt to foo2.txt and all the history will follow (log file of foo2.txt will show all history of foo.txt as well). But on Mercurial, seems like that's not the case. When a hg rename is done, then hg log foo2.txt will not show any previous history of foo.txt? Is there a way around it?

+6  A: 

Use hg log --follow foo2.txt or hg log -f foo2.txt (short form) to show you the entire history of the file before the hg rename

Niall C.