Let the notify extension use [diff] options too.
authorDoug Philips <dgou@mac.com>
Thu, 07 Aug 2008 09:31:42 +0200
changeset 6865 d923a051f84c
parent 6860 6d904eb19c2a
child 6866 0ff5d2bbd8b1
child 6868 93b03f1be289
Let the notify extension use [diff] options too.
hgext/notify.py
--- a/hgext/notify.py	Sat Aug 02 22:10:54 2008 +0200
+++ b/hgext/notify.py	Thu Aug 07 09:31:42 2008 +0200
@@ -236,7 +236,7 @@
         maxdiff = int(self.ui.config('notify', 'maxdiff', 300))
         prev = self.repo.changelog.parents(node)[0]
         self.ui.pushbuffer()
-        patch.diff(self.repo, prev, ref)
+        patch.diff(self.repo, prev, ref, opts=patch.diffopts(self.ui))
         difflines = self.ui.popbuffer().splitlines(1)
         if self.ui.configbool('notify', 'diffstat', True):
             s = patch.diffstat(difflines)