equal
deleted
inserted
replaced
457 mq.refresh(ui, repo, **opts) |
457 mq.refresh(ui, repo, **opts) |
458 |
458 |
459 # backup all changed files |
459 # backup all changed files |
460 dorecord(ui, repo, committomq, 'qrefresh', True, *pats, **opts) |
460 dorecord(ui, repo, committomq, 'qrefresh', True, *pats, **opts) |
461 |
461 |
|
462 # This command registration is replaced during uisetup(). |
|
463 @command('qrecord', [], _('hg qrecord [OPTION]... PATCH [FILE]...')) |
462 def qrecord(ui, repo, patch, *pats, **opts): |
464 def qrecord(ui, repo, patch, *pats, **opts): |
463 '''interactively record a new patch |
465 '''interactively record a new patch |
464 |
466 |
465 See :hg:`help qnew` & :hg:`help record` for more information and |
467 See :hg:`help qnew` & :hg:`help record` for more information and |
466 usage. |
468 usage. |
635 try: |
637 try: |
636 return cmdutil.commit(ui, repo, recordfunc, pats, opts) |
638 return cmdutil.commit(ui, repo, recordfunc, pats, opts) |
637 finally: |
639 finally: |
638 ui.write = oldwrite |
640 ui.write = oldwrite |
639 |
641 |
640 cmdtable["qrecord"] = \ |
|
641 (qrecord, [], # placeholder until mq is available |
|
642 _('hg qrecord [OPTION]... PATCH [FILE]...')) |
|
643 |
|
644 def uisetup(ui): |
642 def uisetup(ui): |
645 try: |
643 try: |
646 mq = extensions.find('mq') |
644 mq = extensions.find('mq') |
647 except KeyError: |
645 except KeyError: |
648 return |
646 return |