Show More
@@ -364,10 +364,10 b' def record(ui, repo, *pats, **opts):' | |||
|
364 | 364 | dorecord(ui, repo, record_committer, *pats, **opts) |
|
365 | 365 | |
|
366 | 366 | |
|
367 | def qrecord(ui, repo, *pats, **opts): | |
|
368 | '''interactively select changes for qrefresh | |
|
367 | def qrecord(ui, repo, patch, *pats, **opts): | |
|
368 | '''interactively record a new patch | |
|
369 | 369 | |
|
370 | see 'hg help record' for more information and usage | |
|
370 | see 'hg help qnew' & 'hg help record' for more information and usage | |
|
371 | 371 | ''' |
|
372 | 372 | |
|
373 | 373 | try: |
@@ -376,8 +376,10 b' def qrecord(ui, repo, *pats, **opts):' | |||
|
376 | 376 | raise util.Abort(_("'mq' extension not loaded")) |
|
377 | 377 | |
|
378 | 378 | def qrecord_committer(ui, repo, pats, opts): |
|
379 |
mq. |
|
|
379 | mq.new(ui, repo, patch, *pats, **opts) | |
|
380 | 380 | |
|
381 | opts = opts.copy() | |
|
382 | opts['force'] = True # always 'qnew -f' | |
|
381 | 383 | dorecord(ui, repo, qrecord_committer, *pats, **opts) |
|
382 | 384 | |
|
383 | 385 | |
@@ -513,10 +515,10 b' def extsetup():' | |||
|
513 | 515 | "qrecord": |
|
514 | 516 | (qrecord, |
|
515 | 517 | |
|
516 |
# add q |
|
|
517 | mq.cmdtable['^qrefresh'][1], | |
|
518 | # add qnew options, except '--force' | |
|
519 | [opt for opt in mq.cmdtable['qnew'][1] if opt[1] != 'force'], | |
|
518 | 520 | |
|
519 | _('hg qrecord [OPTION]... [FILE]...')), | |
|
521 | _('hg qrecord [OPTION]... PATCH [FILE]...')), | |
|
520 | 522 | } |
|
521 | 523 | |
|
522 | 524 | cmdtable.update(qcmdtable) |
General Comments 0
You need to be logged in to leave comments.
Login now