changeset 10796:ce2ae8bf3ae3 stable

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.
author Michael Glassford <glassfordmjg@gmail.com>
date Wed, 31 Mar 2010 10:59:00 -0400
parents 1148a968a070
children e8611ef6bdfb e46c19c586fa
files hgext/mq.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)