# HG changeset patch # User Boris Feld # Date 2017-06-30 01:43:31 # Node ID a0e28577f7d4c0d51cd075ddaaa3cd32d3380545 # Parent ff4a11ff7aa3339a85023cecad1fc30153e6e24e configitems: register the 'notify.test' config diff --git a/hgext/notify.py b/hgext/notify.py --- a/hgext/notify.py +++ b/hgext/notify.py @@ -194,6 +194,9 @@ configitem('notify', 'style', configitem('notify', 'template', default=None, ) +configitem('notify', 'test', + default=True, +) # template for single changeset can include email headers. single_template = ''' @@ -232,7 +235,7 @@ class notifier(object): 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')