mq: allow --mq for qrecord
authorIdan Kamara <idankk86@gmail.com>
Fri, 27 May 2011 17:49:54 +0300
changeset 14448 7d367e8f892d
parent 14447 f63b7fb4b5f6
child 14449 7d171c05a631
mq: allow --mq for qrecord
hgext/mq.py
tests/test-qrecord.t
--- a/hgext/mq.py	Fri May 27 17:46:48 2011 +0300
+++ b/hgext/mq.py	Fri May 27 17:49:54 2011 +0300
@@ -3269,7 +3269,7 @@
     entry = extensions.wrapcommand(commands.table, 'init', mqinit)
     entry[1].extend(mqopt)
 
-    nowrap = set(commands.norepo.split(" ") + ['qrecord'])
+    nowrap = set(commands.norepo.split(" "))
 
     def dotable(cmdtable):
         for cmd in cmdtable.keys():
--- a/tests/test-qrecord.t	Fri May 27 17:46:48 2011 +0300
+++ b/tests/test-qrecord.t	Fri May 27 17:49:54 2011 +0300
@@ -136,6 +136,7 @@
    -X --exclude PATTERN [+]  exclude names matching the given patterns
    -m --message TEXT         use text as commit message
    -l --logfile FILE         read commit message from file
+      --mq                   operate on patch repository
   
   [+] marked option can be specified multiple times