Reputation: 761
I did hg mv foo.txt foo2.txt
. Mercurial marked the file as being added instead of modified.
I did hg log --follow foo2.txt
but got abort: cannot follow nonexistent file: foo2.txt
.
I would expect the above command to work as expected by copying over the log from foo.txt to foo2.txt and mark the file as modified. What am I doing wrong?
Upvotes: 0
Views: 183
Reputation: 673
You have to commit the renaming first and then you could show revision history :
hg commit -m "Renamed foo"
hg log --follow -v
Upvotes: 2