drophack: drop compat layer for "command"
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sat, 18 Aug 2018 00:59:44 +0200
changeset 3969 e854bf1e703f
parent 3968 37178a2d3557
child 3970 005a10537627
drophack: drop compat layer for "command"
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):