changeset 23454:317ccfbd1a84

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.
author Siddharth Agarwal <sid0@fb.com>
date Tue, 18 Nov 2014 21:47:47 -0800
parents 341e4798c24d
children 265034f4e27c
files hgext/notify.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):