# HG changeset patch # User Pierre-Yves David # Date 1534547190 -7200 # Node ID f715dcea50863c08618b6ff139b35990765b2204 # Parent 9f8b99b3d9b587b7e39cc8f92245574bb73934c8 exthelper: drop compatibility layer for `command` We dropped support for 4.2. diff -r 9f8b99b3d9b5 -r f715dcea5086 hgext3rd/evolve/exthelper.py --- a/hgext3rd/evolve/exthelper.py Sat Aug 18 01:05:00 2018 +0200 +++ b/hgext3rd/evolve/exthelper.py Sat Aug 18 01:06:30 2018 +0200 @@ -11,12 +11,6 @@ util, ) -if util.safehasattr(registrar, 'command'): - command = registrar.command -else: # compat with hg < 4.3 - from mercurial import cmdutil - command = cmdutil.command - configitem = None dynamicdefault = None if util.safehasattr(registrar, 'configitem'): @@ -44,7 +38,7 @@ self._functionwrappers = [] self._duckpunchers = [] self.cmdtable = {} - self.command = command(self.cmdtable) + self.command = registrar.command(self.cmdtable) self.configtable = {} self._configitem = None