Patchwork [08,of,13,config] configitems: register the 'notify.merge' config

login
register
mail settings
Submitter Boris Feld
Date Aug. 11, 2017, 1:23 p.m.
Message ID <aafac577cb93e119e248.1502457805@FB>
Download mbox | patch
Permalink /patch/22877/
State Accepted
Headers show

Comments

Boris Feld - Aug. 11, 2017, 1:23 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1498787006 -7200
#      Fri Jun 30 03:43:26 2017 +0200
# Node ID aafac577cb93e119e24855779e31f82d7879bc6f
# Parent  bdd8d57b64f9aa5cc154a8ab5fe771d2caa09ee8
# EXP-Topic config.register.notify
configitems: register the 'notify.merge' config

Patch

diff -r bdd8d57b64f9 -r aafac577cb93 hgext/notify.py
--- a/hgext/notify.py	Fri Jun 30 03:43:25 2017 +0200
+++ b/hgext/notify.py	Fri Jun 30 03:43:26 2017 +0200
@@ -179,6 +179,9 @@ 
 configitem('notify', 'mbox',
     default=None,
 )
+configitem('notify', 'merge',
+    default=True,
+)
 
 # template for single changeset can include email headers.
 single_template = '''
@@ -220,7 +223,7 @@ 
         self.test = self.ui.configbool('notify', 'test', True)
         self.charsets = mail._charsets(self.ui)
         self.subs = self.subscribers()
-        self.merge = self.ui.configbool('notify', 'merge', True)
+        self.merge = self.ui.configbool('notify', 'merge')
 
         mapfile = None
         template = (self.ui.config('notify', hooktype) or