hgext/record.py
changeset 18266 09a2b6741695
parent 17773 434e5bd615fc
child 18287 eeadc76a7575
--- a/hgext/record.py	Tue Jan 08 16:26:52 2013 -0800
+++ b/hgext/record.py	Tue Jan 08 21:16:39 2013 +0100
@@ -520,11 +520,11 @@
                                '(use "hg commit" instead)'))
 
         changes = repo.status(match=match)[:3]
-        diffopts = mdiff.diffopts(
+        diffopts = patch.diffopts(ui, opts=dict(
             git=True, nodates=True,
             ignorews=opts.get('ignore_all_space'),
             ignorewsamount=opts.get('ignore_space_change'),
-            ignoreblanklines=opts.get('ignore_blank_lines'))
+            ignoreblanklines=opts.get('ignore_blank_lines')))
         chunks = patch.diff(repo, changes=changes, opts=diffopts)
         fp = cStringIO.StringIO()
         fp.write(''.join(chunks))