configitems: register the 'acl.config' config
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 30 Jun 2017 03:26:57 +0200
changeset 33185 8b109c61bc11
parent 33184 649f3b0495c8
child 33186 478cb17cc610
configitems: register the 'acl.config' config
hgext/acl.py
--- 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]