mercurial/patch.py
changeset 31271 b3861be6aa6c
parent 31233 067f2a95e32c
child 31273 92714858dd3e
--- a/mercurial/patch.py	Fri Mar 03 16:17:17 2017 +0100
+++ b/mercurial/patch.py	Fri Mar 03 13:51:22 2017 +0100
@@ -2549,9 +2549,10 @@
                                gitindex(content2)[0:opts.index],
                                gitmode[flag]))
 
-            text = mdiff.unidiff(content1, date1,
-                                 content2, date2,
-                                 path1, path2, opts=opts)
+            uheaders, text = mdiff.unidiff(content1, date1,
+                                           content2, date2,
+                                           path1, path2, opts=opts)
+            header.extend(uheaders)
         if header and (text or len(header) > 1):
             yield '\n'.join(header) + '\n'
         if text: