changeset 4326:80fce30fd919

exthelper: simplify configitem registration
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 22 Dec 2018 22:26:36 -0500
parents 7f3c25791fe2
children 9521698a9894
files hgext3rd/evolve/exthelper.py
diffstat 1 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/exthelper.py	Thu Dec 27 21:26:17 2018 -0500
+++ b/hgext3rd/evolve/exthelper.py	Sat Dec 22 22:26:36 2018 -0500
@@ -11,7 +11,6 @@
 
 from mercurial import (
     commands,
-    configitems,
     extensions,
     fileset as filesetmod,
     registrar,
@@ -52,12 +51,7 @@
             self.command._doregister = _newdoregister
 
         self.configtable = {}
-        self._configitem = registrar.configitem(self.configtable)
-
-    def configitem(self, section, config, default=configitems.dynamicdefault):
-        """Register a config item.
-        """
-        self._configitem(section, config, default=default)
+        self.configitem = registrar.configitem(self.configtable)
 
     def merge(self, other):
         self._uicallables.extend(other._uicallables)