hgext/record.py
changeset 20301 4988e4246537
parent 20300 0076643077a3
child 20334 205599e31870
--- a/hgext/record.py	Thu Jan 16 14:57:52 2014 -0500
+++ b/hgext/record.py	Thu Jan 16 15:05:03 2014 -0500
@@ -515,11 +515,10 @@
                                '(use "hg commit" instead)'))
 
         changes = repo.status(match=match)[:3]
-        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')))
+        diffopts = opts.copy()
+        diffopts['nodates'] = True
+        diffopts['git'] = True
+        diffopts = patch.diffopts(ui, opts=diffopts)
         chunks = patch.diff(repo, changes=changes, opts=diffopts)
         fp = cStringIO.StringIO()
         fp.write(''.join(chunks))