# HG changeset patch # User Boris Feld <boris.f...@octobus.net> # Date 1498786999 -7200 # Fri Jun 30 03:43:19 2017 +0200 # Node ID 0980f220e3d3e8d6737d2a8c7b468491b0e1cd52 # Parent f60ab18ff3fd401c460755b77001a9fa1bbf6977 # EXP-Topic config.register.notify configitems: register the 'notify.diffstat' config
diff -r f60ab18ff3fd -r 0980f220e3d3 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: _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel