# HG changeset patch # User Pierre-Yves David # Date 1534546784 -7200 # Node ID e854bf1e703f3a93c097de9d5ac6e45d50b4df4d # Parent 37178a2d3557a604b2dd7be4e61749b7f7ac96fe drophack: drop compat layer for "command" diff -r 37178a2d3557 -r e854bf1e703f hgext3rd/evolve/hack/drophack.py --- 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):