1

I use vimdiff as the diff tool in Mercurial. When I diff a renamed or moved file, it treats the file as new instead of comparing it with the old one. Is there a way to fix that?

Here's my .hgrc:

[extensions]
hgext.extdiff =

[extdiff]
cmd.vimdiff =

I invoke it with

hg vimdiff <filename>
Saulo Silva
  • 1,219
  • 1
  • 20
  • 37
  • 1
    Not sure if it will resolve this issue, but generally using -f will tell hg to "follow" renames. See http://stackoverflow.com/questions/22045248/hg-how-to-move-files-to-subfolder-without-losing-history/22055830#22055830 – Fred the Magic Wonder Dog Sep 17 '14 at 20:11
  • Yep, I already have `hg diff` following renames. This doesn't seem to get picked up by vimdiff, though. – Saulo Silva Sep 18 '14 at 14:17

0 Answers0