# HG changeset patch # User Pierre-Yves David # Date 1498935514 -7200 # Node ID 2b233065f57a38ff948611ff175f2d297729b9a9 # Parent 478cb17cc610316e223f878641f1f609665e9b94 acl: use configlist to retrieve the source config This is what the previous code was about. diff -r 478cb17cc610 -r 2b233065f57a hgext/acl.py --- a/hgext/acl.py Fri Jun 30 03:27:07 2017 +0200 +++ b/hgext/acl.py Sat Jul 01 20:58:34 2017 +0200 @@ -219,7 +219,7 @@ default=None, ) configitem('acl', 'sources', - default='serve', + default=['serve'], ) def _getusers(ui, group): @@ -292,7 +292,7 @@ raise error.Abort(_('config error - hook type "%s" cannot stop ' 'incoming changesets nor commits') % hooktype) if (hooktype == 'pretxnchangegroup' and - source not in ui.config('acl', 'sources').split()): + source not in ui.configlist('acl', 'sources')): ui.debug('acl: changes have source "%s" - skipping\n' % source) return