##// END OF EJS Templates
configitems: register the 'notify.strip' config
Boris Feld -
r33747:71665bbe default
parent child Browse files
Show More
@@ -185,6 +185,9 b" configitem('notify', 'merge',"
185 configitem('notify', 'sources',
185 configitem('notify', 'sources',
186 default='serve',
186 default='serve',
187 )
187 )
188 configitem('notify', 'strip',
189 default=0,
190 )
188
191
189 # template for single changeset can include email headers.
192 # template for single changeset can include email headers.
190 single_template = '''
193 single_template = '''
@@ -219,7 +222,7 b' class notifier(object):'
219 if cfg:
222 if cfg:
220 self.ui.readconfig(cfg, sections=['usersubs', 'reposubs'])
223 self.ui.readconfig(cfg, sections=['usersubs', 'reposubs'])
221 self.repo = repo
224 self.repo = repo
222 self.stripcount = int(self.ui.config('notify', 'strip', 0))
225 self.stripcount = int(self.ui.config('notify', 'strip'))
223 self.root = self.strip(self.repo.root)
226 self.root = self.strip(self.repo.root)
224 self.domain = self.ui.config('notify', 'domain')
227 self.domain = self.ui.config('notify', 'domain')
225 self.mbox = self.ui.config('notify', 'mbox')
228 self.mbox = self.ui.config('notify', 'mbox')
General Comments 0
You need to be logged in to leave comments. Login now