record: alias qrecord to qnew -i/--interactive
authorIdan Kamara <idankk86@gmail.com>
Tue, 24 May 2011 19:17:22 +0300
changeset 14427 9d4cabd189df
parent 14426 1df64ccef23e
child 14428 f0c43c63f742
record: alias qrecord to qnew -i/--interactive
hgext/record.py
--- a/hgext/record.py	Tue May 24 19:17:19 2011 +0300
+++ b/hgext/record.py	Tue May 24 19:17:22 2011 +0300
@@ -565,9 +565,13 @@
         return
 
     cmdtable["qrecord"] = \
-        (qrecord, mq.cmdtable['^qnew'][1], # same options as qnew
+        (qrecord,
+         # same options as qnew, but copy them so we don't get
+         # -i/--interactive for qrecord
+         mq.cmdtable['^qnew'][1][:],
          _('hg qrecord [OPTION]... PATCH [FILE]...'))
 
+    _wrapcmd('qnew', mq.cmdtable, qrecord, _("interactively record a new patch"))
     _wrapcmd('qrefresh', mq.cmdtable, qrefresh,
              _("interactively select changes to refresh"))