##// END OF EJS Templates
configitems: register the 'notify.diffstat' config
Boris Feld -
r33739:b30da11d default
parent child Browse files
Show More
@@ -161,6 +161,9 b' configitem = registrar.configitem(config'
161 configitem('notify', 'config',
161 configitem('notify', 'config',
162 default=None,
162 default=None,
163 )
163 )
164 configitem('notify', 'diffstat',
165 default=True,
166 )
164
167
165 # template for single changeset can include email headers.
168 # template for single changeset can include email headers.
166 single_template = '''
169 single_template = '''
@@ -368,7 +371,7 b' class notifier(object):'
368 opts=patch.diffallopts(self.ui))
371 opts=patch.diffallopts(self.ui))
369 difflines = ''.join(chunks).splitlines()
372 difflines = ''.join(chunks).splitlines()
370
373
371 if self.ui.configbool('notify', 'diffstat', True):
374 if self.ui.configbool('notify', 'diffstat'):
372 s = patch.diffstat(difflines)
375 s = patch.diffstat(difflines)
373 # s may be nil, don't include the header if it is
376 # s may be nil, don't include the header if it is
374 if s:
377 if s:
General Comments 0
You need to be logged in to leave comments. Login now