# HG changeset patch # User Boris Feld # Date 2017-06-30 01:43:28 # Node ID 71665bbe82c1478e2134fba174c4fb2e26c0dd03 # Parent 20189ba5fddf0f3c72cef66e7c61109a9f7ed787 configitems: register the 'notify.strip' config diff --git a/hgext/notify.py b/hgext/notify.py --- a/hgext/notify.py +++ b/hgext/notify.py @@ -185,6 +185,9 @@ configitem('notify', 'merge', configitem('notify', 'sources', default='serve', ) +configitem('notify', 'strip', + default=0, +) # template for single changeset can include email headers. single_template = ''' @@ -219,7 +222,7 @@ class notifier(object): if cfg: self.ui.readconfig(cfg, sections=['usersubs', 'reposubs']) self.repo = repo - self.stripcount = int(self.ui.config('notify', 'strip', 0)) + self.stripcount = int(self.ui.config('notify', 'strip')) self.root = self.strip(self.repo.root) self.domain = self.ui.config('notify', 'domain') self.mbox = self.ui.config('notify', 'mbox')