Mercurial > public > mercurial-scm > hg
diff mercurial/patch.py @ 7200:ca5ac40949dc
patch/diff: use a separate function to write the first line of a file diff
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Wed, 22 Oct 2008 13:14:52 +0200 |
parents | dd891d0d97a3 |
children | 127a624406b4 |
line wrap: on
line diff
--- 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)