Mercurial > public > mercurial-scm > hg
diff mercurial/commands.py @ 5482:e5eedd74e70f
Use both the from and to name in mdiff.unidiff.
This fixes a compatibility issue with git diffs.
* * *
author | Dustin Sallings <dustin@spy.net> |
---|---|
date | Thu, 01 Nov 2007 12:17:59 -0700 |
parents | 8feb33c2d153 |
children | dcbda0c4c3eb |
line wrap: on
line diff
--- a/mercurial/commands.py Thu Nov 01 12:05:14 2007 +0100 +++ b/mercurial/commands.py Thu Nov 01 12:17:59 2007 -0700 @@ -873,7 +873,8 @@ a = "1\n2\n3\n4\n" b = "1\n2\n3\ninsert\n4\n" fa = writetemp(a) - d = mdiff.unidiff(a, None, b, None, os.path.basename(fa)) + d = mdiff.unidiff(a, None, b, None, os.path.basename(fa), + os.path.basename(fa)) fd = writetemp(d) files = {}