changeset 33185:8b109c61bc11

configitems: register the 'acl.config' config
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 30 Jun 2017 03:26:57 +0200
parents 649f3b0495c8
children 478cb17cc610
files hgext/acl.py
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/acl.py	Wed Jun 28 13:31:51 2017 +0200
+++ b/hgext/acl.py	Fri Jun 30 03:26:57 2017 +0200
@@ -199,6 +199,7 @@
 from mercurial import (
     error,
     match,
+    registrar,
     util,
 )
 
@@ -210,6 +211,14 @@
 # leave the attribute unspecified.
 testedwith = 'ships-with-hg-core'
 
+configtable = {}
+configitem = registrar.configitem(configtable)
+
+# deprecated config: acl.config
+configitem('acl', 'config',
+    default=None,
+)
+
 def _getusers(ui, group):
 
     # First, try to use group definition from section [acl.groups]