##// END OF EJS Templates
record: declare commands using decorator
Gregory Szorc -
r21251:a836fa58 default
parent child Browse files
Show More
@@ -459,6 +459,8 b' def qrefresh(origfn, ui, repo, *pats, **'
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
@@ -637,10 +639,6 b' def dorecord(ui, repo, commitfunc, cmdsu'
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')
General Comments 0
You need to be logged in to leave comments. Login now