Submitter | Boris Feld |
---|---|
Date | Aug. 11, 2017, 1:23 p.m. |
Message ID | <a382bad84d9d3fe4d720.1502457810@FB> |
Download | mbox | patch |
Permalink | /patch/22883/ |
State | Accepted |
Headers | show |
Comments
On Fri, Aug 11, 2017 at 03:23:30PM +0200, Boris Feld wrote: > # HG changeset patch > # User Boris Feld <boris.feld@octobus.net> > # Date 1498787011 -7200 > # Fri Jun 30 03:43:31 2017 +0200 > # Node ID a382bad84d9d3fe4d72025c755c084b3f6704ca1 > # Parent 58446c552d9ec37c4c55d776f4681aa5906d35cb > # EXP-Topic config.register.notify > configitems: register the 'notify.test' config queued, thanks
Patch
diff -r 58446c552d9e -r a382bad84d9d hgext/notify.py --- a/hgext/notify.py Fri Jun 30 03:43:30 2017 +0200 +++ b/hgext/notify.py Fri Jun 30 03:43:31 2017 +0200 @@ -194,6 +194,9 @@ configitem('notify', 'template', default=None, ) +configitem('notify', 'test', + default=True, +) # template for single changeset can include email headers. single_template = ''' @@ -232,7 +235,7 @@ self.root = self.strip(self.repo.root) self.domain = self.ui.config('notify', 'domain') self.mbox = self.ui.config('notify', 'mbox') - self.test = self.ui.configbool('notify', 'test', True) + self.test = self.ui.configbool('notify', 'test') self.charsets = mail._charsets(self.ui) self.subs = self.subscribers() self.merge = self.ui.configbool('notify', 'merge')