# HG changeset patch # User Boris Feld # Date 1498786999 -7200 # Node ID b30da11d92332bd53e9f31d4bc959a85eca4cb7f # Parent 2069a8c336b92526ca7113a54a40f25467249513 configitems: register the 'notify.diffstat' config diff -r 2069a8c336b9 -r b30da11d9233 hgext/notify.py --- a/hgext/notify.py Fri Jun 30 03:43:18 2017 +0200 +++ b/hgext/notify.py Fri Jun 30 03:43:19 2017 +0200 @@ -161,6 +161,9 @@ configitem('notify', 'config', default=None, ) +configitem('notify', 'diffstat', + default=True, +) # template for single changeset can include email headers. single_template = ''' @@ -368,7 +371,7 @@ opts=patch.diffallopts(self.ui)) difflines = ''.join(chunks).splitlines() - if self.ui.configbool('notify', 'diffstat', True): + if self.ui.configbool('notify', 'diffstat'): s = patch.diffstat(difflines) # s may be nil, don't include the header if it is if s: