diff hgext/mq.py @ 30485:acd30a959980

dispatch: stop supporting non-use of @command We said we'd delete this after 3.8. It's time.
author Augie Fackler <augie@google.com>
date Mon, 21 Nov 2016 21:51:23 -0500
parents d79c141fdf41
children 0ae83ede68c5
line wrap: on
line diff
--- a/hgext/mq.py	Mon Nov 21 20:12:51 2016 -0800
+++ b/hgext/mq.py	Mon Nov 21 21:51:23 2016 -0500
@@ -79,7 +79,6 @@
 from mercurial import (
     cmdutil,
     commands,
-    dispatch,
     error,
     extensions,
     hg,
@@ -3588,7 +3587,7 @@
         for cmd, entry in cmdtable.iteritems():
             cmd = cmdutil.parsealiases(cmd)[0]
             func = entry[0]
-            if dispatch._cmdattr(ui, cmd, func, 'norepo'):
+            if func.norepo:
                 continue
             entry = extensions.wrapcommand(cmdtable, cmd, mqcommand)
             entry[1].extend(mqopt)