diffing file revisions across renames??

Alexis S. L. Carvalho alexis at cecm.usp.br
Mon Apr 16 09:38:15 CDT 2007


Thus spake Leo Razoumov:
> I am using Mercurial 0.9.3 and find its file rename features very
> useful, indeed.
> I can list a file's history information across renames with "hg log
> -f" but I have not found a way to diff two file revisions that across
> renames. This would be very useful, for I tend to rename files quite
> often as my project progresses.
> 
> Any help or/and advice is highly appreciated.

Try

hg diff --git -r rev-before-rename -r rev-after-rename new-filename

But I think even this won't work in all cases - we should probably
change diff to use the same move/copy detection used by merge.

Alexis


More information about the Mercurial mailing list