changeset 33772:20189ba5fddf

configitems: register the 'notify.sources' config
author Boris Feld <boris.feld@octobus.net>
date Fri, 30 Jun 2017 03:43:27 +0200
parents 8bf8ed0deab8
children 71665bbe82c1
files hgext/notify.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/notify.py	Fri Jun 30 03:43:26 2017 +0200
+++ b/hgext/notify.py	Fri Jun 30 03:43:27 2017 +0200
@@ -182,6 +182,9 @@
 configitem('notify', 'merge',
     default=True,
 )
+configitem('notify', 'sources',
+    default='serve',
+)
 
 # template for single changeset can include email headers.
 single_template = '''
@@ -294,7 +297,7 @@
 
     def skipsource(self, source):
         '''true if incoming changes from this source should be skipped.'''
-        ok_sources = self.ui.config('notify', 'sources', 'serve').split()
+        ok_sources = self.ui.config('notify', 'sources').split()
         return source not in ok_sources
 
     def send(self, ctx, count, data):