[PATCH] mq: allow --mq for qrecord

Idan Kamara idankk86 at gmail.com
Fri May 27 09:51:05 CDT 2011


# HG changeset patch
# User Idan Kamara <idankk86 at gmail.com>
# Date 1306507794 -10800
# Node ID ed8bc9d4314bc86a54bb4a596dd0468e6a9b7210
# Parent  5b48ad1e7f1a0bb6e408993d50eb8959255834ea
mq: allow --mq for qrecord

diff -r 5b48ad1e7f1a -r ed8bc9d4314b hgext/mq.py
--- a/hgext/mq.py	Thu May 26 17:15:35 2011 -0500
+++ 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():
diff -r 5b48ad1e7f1a -r ed8bc9d4314b tests/test-qrecord.t
--- a/tests/test-qrecord.t	Thu May 26 17:15:35 2011 -0500
+++ 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
   


More information about the Mercurial-devel mailing list