mercurial/registrar.py
changeset 33132 c467d13334ee
parent 32339 92de09a05d7f
child 33699 50c44dee741a
--- a/mercurial/registrar.py	Sat Jun 17 13:38:53 2017 +0200
+++ b/mercurial/registrar.py	Sat Jun 17 13:48:20 2017 +0200
@@ -8,11 +8,19 @@
 from __future__ import absolute_import
 
 from . import (
+    configitems,
     error,
     pycompat,
     util,
 )
 
+# unlike the other registered items, config options are neither functions or
+# classes. Registering the option is just small function call.
+#
+# We still add the official API to the registrar module for consistency with
+# the other items extensions want might to register.
+configitem = configitems.getitemregister
+
 class _funcregistrarbase(object):
     """Base of decorator to register a function for specific purpose