[PATCH] Let the notify extension use [diff] options too

Doug Philips dgou at mac.com
Wed Aug 6 23:44:29 CDT 2008


# HG changeset patch
# User Doug Philips <dgou at mac.com>
# Date 1216436694 14400
# Node ID 873bd8a4d103ff03f9baeea59cef37af1894e01e
# Parent  105d8676a688a50fcf82b9ee781d97ea833a9133
Let the notify extension use [diff] options too.

diff -r 105d8676a688 -r 873bd8a4d103 hgext/notify.py
--- a/hgext/notify.py	Wed Aug 06 17:19:14 2008 -0500
+++ b/hgext/notify.py	Fri Jul 18 23:04:54 2008 -0400
@@ -234,7 +234,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)


More information about the Mercurial-devel mailing list