# HG changeset patch # User Matt Harbison # Date 1545535596 18000 # Node ID 80fce30fd919d3ee743fc9f4ff7a42af873cbe77 # Parent 7f3c25791fe250a5c6013150d86a591ebb42af78 exthelper: simplify configitem registration diff -r 7f3c25791fe2 -r 80fce30fd919 hgext3rd/evolve/exthelper.py --- 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)