hgext/mq.py
changeset 28622 527cf881d000
parent 28449 3072ce740945
child 29127 fa161ac73b24
--- a/hgext/mq.py	Mon Mar 14 00:06:52 2016 +0900
+++ b/hgext/mq.py	Mon Mar 14 00:14:43 2016 +0900
@@ -66,6 +66,7 @@
 from mercurial.node import bin, hex, short, nullid, nullrev
 from mercurial.lock import release
 from mercurial import commands, cmdutil, hg, scmutil, util, revset
+from mercurial import dispatch
 from mercurial import extensions, error, phases
 from mercurial import patch as patchmod
 from mercurial import lock as lockmod
@@ -3566,7 +3567,7 @@
         for cmd, entry in cmdtable.iteritems():
             cmd = cmdutil.parsealiases(cmd)[0]
             func = entry[0]
-            if func.norepo:
+            if dispatch._cmdattr(ui, cmd, func, 'norepo'):
                 continue
             entry = extensions.wrapcommand(cmdtable, cmd, mqcommand)
             entry[1].extend(mqopt)