hgext/record.py
changeset 23435 486a1fe09422
parent 23270 41c03b7592ed
child 24235 79fceed67676
--- a/hgext/record.py	Tue Nov 18 17:22:03 2014 -0800
+++ b/hgext/record.py	Tue Nov 18 20:00:37 2014 -0800
@@ -519,10 +519,9 @@
                                '(use "hg commit" instead)'))
 
         status = repo.status(match=match)
-        diffopts = opts.copy()
-        diffopts['nodates'] = True
-        diffopts['git'] = True
-        diffopts = patch.diffopts(ui, opts=diffopts)
+        diffopts = patch.difffeatureopts(ui, opts=opts, whitespace=True)
+        diffopts.nodates = True
+        diffopts.git = True
         chunks = patch.diff(repo, changes=status, opts=diffopts)
         fp = cStringIO.StringIO()
         fp.write(''.join(chunks))