hgext/record.py
changeset 40295 fa88170c10bb
parent 40293 c303d65d2e34
child 41768 aaad36b88298
equal deleted inserted replaced
40294:fabbf9310025 40295:fa88170c10bb
    30 testedwith = 'ships-with-hg-core'
    30 testedwith = 'ships-with-hg-core'
    31 
    31 
    32 
    32 
    33 @command("record",
    33 @command("record",
    34          # same options as commit + white space diff options
    34          # same options as commit + white space diff options
    35         [c for c in commands.table['^commit|ci'][1][:]
    35         [c for c in commands.table['commit|ci'][1][:]
    36             if c[1] != "interactive"] + cmdutil.diffwsopts,
    36             if c[1] != "interactive"] + cmdutil.diffwsopts,
    37           _('hg record [OPTION]... [FILE]...'),
    37           _('hg record [OPTION]... [FILE]...'),
    38         helpcategory=command.CATEGORY_COMMITTING)
    38         helpcategory=command.CATEGORY_COMMITTING)
    39 def record(ui, repo, *pats, **opts):
    39 def record(ui, repo, *pats, **opts):
    40     '''interactively select changes to commit
    40     '''interactively select changes to commit
   136 
   136 
   137     cmdtable["qrecord"] = \
   137     cmdtable["qrecord"] = \
   138         (qrecord,
   138         (qrecord,
   139          # same options as qnew, but copy them so we don't get
   139          # same options as qnew, but copy them so we don't get
   140          # -i/--interactive for qrecord and add white space diff options
   140          # -i/--interactive for qrecord and add white space diff options
   141          mq.cmdtable['^qnew'][1][:] + cmdutil.diffwsopts,
   141          mq.cmdtable['qnew'][1][:] + cmdutil.diffwsopts,
   142          _('hg qrecord [OPTION]... PATCH [FILE]...'))
   142          _('hg qrecord [OPTION]... PATCH [FILE]...'))
   143 
   143 
   144     _wrapcmd('qnew', mq.cmdtable, qnew, _("interactively record a new patch"))
   144     _wrapcmd('qnew', mq.cmdtable, qnew, _("interactively record a new patch"))
   145     _wrapcmd('qrefresh', mq.cmdtable, qrefresh,
   145     _wrapcmd('qrefresh', mq.cmdtable, qrefresh,
   146              _("interactively select changes to refresh"))
   146              _("interactively select changes to refresh"))