How to diff files after several renames
Sergey Antonov
sergant_ at mail.ru
Mon Dec 10 19:40:03 UTC 2007
I'm working on MSVS SCC integration plugin for Mercurial.
In ShowHistory dialog I able to show history for the file
including renames, but I can't figure it out how to show
the difference for the old revisions, where file was renamed.
Mercurial do nothing when I trying to diff the old revisions
with latest file name.
Is there any way to track renames ?
for example:
1. add the file: test.cpp
2. rename test.cpp -> test2.cpp
3. modify test2.cpp
4. rename test2.cpp -> test3.cpp
5. modify test3.cpp
When I use: hg.exe diff -r 4 -r 5 test3.cpp
It works.
But for old revisions with latest name (test3.cpp), it doesn't.
PS: I can use the Added/Removed status in the changesets, but it
works only if there was one rename in changeset without added/removed files.
More information about the Mercurial
mailing list