configitem: create a new list of each 'acl.sources' access
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sun, 02 Jul 2017 23:10:33 +0200
changeset 33216 fc2baecdef1d
parent 33215 b7f6885cb055
child 33217 f96c2f2f559b
configitem: create a new list of each 'acl.sources' access Thanks for goes to Yuya for spotting this.
hgext/acl.py
--- a/hgext/acl.py	Mon Jul 03 02:52:40 2017 +0900
+++ b/hgext/acl.py	Sun Jul 02 23:10:33 2017 +0200
@@ -219,7 +219,7 @@
     default=None,
 )
 configitem('acl', 'sources',
-    default=['serve'],
+    default=lambda: ['serve'],
 )
 
 def _getusers(ui, group):