changeset 14427:9d4cabd189df

record: alias qrecord to qnew -i/--interactive
author Idan Kamara <idankk86@gmail.com>
date Tue, 24 May 2011 19:17:22 +0300
parents 1df64ccef23e
children f0c43c63f742
files hgext/record.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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"))