notify: explicitly honor all diffopts
authorSiddharth Agarwal <sid0@fb.com>
Tue, 18 Nov 2014 21:47:47 -0800
changeset 23454 317ccfbd1a84
parent 23453 341e4798c24d
child 23455 265034f4e27c
notify: explicitly honor all diffopts The notify output doesn't seem to be parseable anyway, what with the maxdiff config option. Plus it is designed mainly for servers where hopefully the admins are doing sensible things.
hgext/notify.py
--- a/hgext/notify.py	Tue Nov 18 22:13:05 2014 -0800
+++ b/hgext/notify.py	Tue Nov 18 21:47:47 2014 -0800
@@ -341,7 +341,8 @@
         maxdiff = int(self.ui.config('notify', 'maxdiff', 300))
         prev = ctx.p1().node()
         ref = ref and ref.node() or ctx.node()
-        chunks = patch.diff(self.repo, prev, ref, opts=patch.diffopts(self.ui))
+        chunks = patch.diff(self.repo, prev, ref,
+                            opts=patch.diffallopts(self.ui))
         difflines = ''.join(chunks).splitlines()
 
         if self.ui.configbool('notify', 'diffstat', True):