hgext/record.py
changeset 14427 9d4cabd189df
parent 14426 1df64ccef23e
child 14441 39e81b9377e6
equal deleted inserted replaced
14426:1df64ccef23e 14427:9d4cabd189df
   563         mq = extensions.find('mq')
   563         mq = extensions.find('mq')
   564     except KeyError:
   564     except KeyError:
   565         return
   565         return
   566 
   566 
   567     cmdtable["qrecord"] = \
   567     cmdtable["qrecord"] = \
   568         (qrecord, mq.cmdtable['^qnew'][1], # same options as qnew
   568         (qrecord,
       
   569          # same options as qnew, but copy them so we don't get
       
   570          # -i/--interactive for qrecord
       
   571          mq.cmdtable['^qnew'][1][:],
   569          _('hg qrecord [OPTION]... PATCH [FILE]...'))
   572          _('hg qrecord [OPTION]... PATCH [FILE]...'))
   570 
   573 
       
   574     _wrapcmd('qnew', mq.cmdtable, qrecord, _("interactively record a new patch"))
   571     _wrapcmd('qrefresh', mq.cmdtable, qrefresh,
   575     _wrapcmd('qrefresh', mq.cmdtable, qrefresh,
   572              _("interactively select changes to refresh"))
   576              _("interactively select changes to refresh"))
   573 
   577 
   574 def _wrapcmd(cmd, table, wrapfn, msg):
   578 def _wrapcmd(cmd, table, wrapfn, msg):
   575     '''wrap the command'''
   579     '''wrap the command'''