cosmosa
cosmosa

Reputation: 761

Mercurial: "cannot follow nonexistent file" after hg log --follow

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

Answers (1)

aflp91
aflp91

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

Related Questions