Add missing --mq option to hg log. stable
authorMichael Glassford <glassfordmjg@gmail.com>
Wed, 31 Mar 2010 10:59:00 -0400
branchstable
changeset 10796 ce2ae8bf3ae3
parent 10794 1148a968a070
child 10797 e8611ef6bdfb
child 10798 e46c19c586fa
Add missing --mq option to hg log. Since norepo is a string, not a list, the norepo check was matching command names against any substring in norepo. This fix splits norepo into a list of commands.
hgext/mq.py
--- a/hgext/mq.py	Fri Mar 26 21:37:18 2010 +0100
+++ b/hgext/mq.py	Wed Mar 31 10:59:00 2010 -0400
@@ -2669,9 +2669,10 @@
     entry = extensions.wrapcommand(commands.table, 'init', mqinit)
     entry[1].extend(mqopt)
 
+    norepo = commands.norepo.split(" ")
     for cmd in commands.table.keys():
         cmd = cmdutil.parsealiases(cmd)[0]
-        if cmd in commands.norepo:
+        if cmd in norepo:
             continue
         entry = extensions.wrapcommand(commands.table, cmd, mqcommand)
         entry[1].extend(mqopt)