Mercurial > hg
changeset 33750:a0e28577f7d4
configitems: register the 'notify.test' config
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 30 Jun 2017 03:43:31 +0200 |
parents | ff4a11ff7aa3 |
children | 5866ba5e9c48 |
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: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')