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

login
register
mail settings
Submitter Pierre-Yves David
Date July 2, 2017, 10:25 p.m.
Message ID <2f98b064f93c12946672.1499034318@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/21928/
State Accepted
Headers show

Comments

Pierre-Yves David - July 2, 2017, 10:25 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@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.
Yuya Nishihara - July 4, 2017, 2:18 p.m.
On Mon, 03 Jul 2017 00:25:18 +0200, Pierre-Yves David wrote:
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david@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

Queued, thanks.

Patch

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):