mercurial/patch.py
changeset 7200 ca5ac40949dc
parent 7199 dd891d0d97a3
child 7244 127a624406b4
--- a/mercurial/patch.py	Wed Oct 22 12:56:28 2008 +0200
+++ b/mercurial/patch.py	Wed Oct 22 13:14:52 2008 +0200
@@ -1266,7 +1266,7 @@
                 if util.binary(to) or util.binary(tn):
                     dodiff = 'binary'
             r = None
-            header.insert(0, 'diff --git a/%s b/%s\n' % (a, b))
+            header.insert(0, mdiff.diffline(r, a, b, opts))
         if dodiff:
             if dodiff == 'binary':
                 text = b85diff(to, tn)