diff hgext/acl.py @ 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 d5883fd055c6
children 478cb17cc610
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]