changeset 33739:b30da11d9233

configitems: register the 'notify.diffstat' config
author Boris Feld <boris.feld@octobus.net>
date Fri, 30 Jun 2017 03:43:19 +0200
parents 2069a8c336b9
children a853325102a0
files hgext/notify.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: