# HG changeset patch # User Pierre-Yves David # Date 1508429867 -7200 # Node ID 25a6a252025502b38c6d81a713e635b8af31dcba # Parent 461c9d940519e3e1771579f9e6ef2a4496cf1248 directaccess: register config item if possible Mercurial 4.4 warns about unregistered config. diff -r 461c9d940519 -r 25a6a2520255 hgext3rd/evolve/hack/directaccess.py --- a/hgext3rd/evolve/hack/directaccess.py Thu Oct 19 14:46:06 2017 +0200 +++ b/hgext3rd/evolve/hack/directaccess.py Thu Oct 19 18:17:47 2017 +0200 @@ -24,6 +24,14 @@ from mercurial import cmdutil command = cmdutil.command(cmdtable) +if util.safehasattr(registrar, 'configitem'): + configtable = {} + configitem = registrar.configitem(configtable) + + configitem('directaccess', 'loadsafter', + default=[], + ) + # By default, all the commands have directaccess with warnings # List of commands that have no directaccess and directaccess with no warning directaccesslevel = [