Mercurial > evolve
changeset 3969:e854bf1e703f
drophack: drop compat layer for "command"
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 18 Aug 2018 00:59:44 +0200 |
parents | 37178a2d3557 |
children | 005a10537627 |
files | hgext3rd/evolve/hack/drophack.py |
diffstat | 1 files changed, 1 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/hack/drophack.py Sat Aug 18 00:53:12 2018 +0200 +++ b/hgext3rd/evolve/hack/drophack.py Sat Aug 18 00:59:44 2018 +0200 @@ -21,12 +21,7 @@ cmdtable = {} -if util.safehasattr(registrar, 'command'): - command = registrar.command(cmdtable) -else: # compat with hg < 4.3 - from mercurial import cmdutil - command = cmdutil.command(cmdtable) - +command = registrar.command(cmdtable) @contextlib.contextmanager def timed(ui, caption):