# HG changeset patch # User Boris Feld # Date 2017-06-30 01:43:18 # Node ID 2069a8c336b92526ca7113a54a40f25467249513 # Parent 02a745c20121f9add702f0200dc5522e912c2d20 configitems: register the 'notify.config' config diff --git a/hgext/notify.py b/hgext/notify.py --- a/hgext/notify.py +++ b/hgext/notify.py @@ -145,6 +145,7 @@ from mercurial import ( error, mail, patch, + registrar, util, ) @@ -154,6 +155,13 @@ from mercurial import ( # leave the attribute unspecified. testedwith = 'ships-with-hg-core' +configtable = {} +configitem = registrar.configitem(configtable) + +configitem('notify', 'config', + default=None, +) + # template for single changeset can include email headers. single_template = ''' Subject: changeset in {webroot}: {desc|firstline|strip}