[PATCH 01 of 18] configitem: create a new list of each 'acl.sources' access

Pierre-Yves David pierre-yves.david at ens-lyon.org
Sun Jul 2 22:25:18 UTC 2017


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at octobus.net>
# Date 1499029833 -7200
#      Sun Jul 02 23:10:33 2017 +0200
# Node ID 2f98b064f93c129466722dd3e34f37696878d3c7
# Parent  c077eac329e26a4ca7da8b80071ba9161994bcfe
# EXP-Topic config.register.fixup
# Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/
#              hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r 2f98b064f93c
configitem: create a new list of each 'acl.sources' access

Thanks for goes to Yuya for spotting this.

diff --git a/hgext/acl.py b/hgext/acl.py
--- a/hgext/acl.py
+++ b/hgext/acl.py
@@ -219,7 +219,7 @@ configitem('acl', 'config',
     default=None,
 )
 configitem('acl', 'sources',
-    default=['serve'],
+    default=lambda: ['serve'],
 )
 
 def _getusers(ui, group):


More information about the Mercurial-devel mailing list