In Mercurial, "hg rename" works but the history doesn't follow the file?
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
nonopolarity
I started with Apple Basic and 6502 machine code and Assembly, then went onto Fortran, Pascal, C, Lisp (Scheme), microcode, Perl, Java, JavaScript, Python, Ruby, PHP, and Objective-C. Originally, I was going to go with an Atari... but it was a big expense for my family... and after months of me nagging, my dad agreed to buy an Apple ][. At that time, the Pineapple was also available. The few months in childhood seem to last forever. A few months nowadays seem to pass like days. Those days, a computer had 16kb or 48kb of RAM. Today, the computer has 16GB. So it is in fact a million times. If you know what D5 AA 96 means, we belong to the same era.
Updated on June 04, 2022Comments
-
nonopolarity about 2 years
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, thenhg log foo2.txt
will not show any previous history offoo.txt
? Is there a way around it?