--- a/hgext/notify.py Thu Sep 14 19:24:00 2006 -0700
+++ b/hgext/notify.py Wed Sep 13 13:14:08 2006 -0700
@@ -240,6 +240,9 @@
prev = self.repo.changelog.parents(node)[0]
patch.diff(self.repo, prev, ref, fp=fp)
difflines = fp.getvalue().splitlines(1)
+ if self.ui.configbool('notify', 'diffstat', True):
+ s = patch.diffstat(difflines)
+ self.sio.write('\ndiffstat:\n\n' + s)
if maxdiff > 0 and len(difflines) > maxdiff:
self.sio.write(_('\ndiffs (truncated from %d to %d lines):\n\n') %
(len(difflines), maxdiff))