Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Mercurial, "hg rename" works but the history doesn't follow the file?

Tags:

mercurial

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?

like image 408
nonopolarity Avatar asked Aug 12 '10 21:08

nonopolarity


1 Answers

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

like image 115
Niall C. Avatar answered Sep 22 '22 13:09

Niall C.