##// END OF EJS Templates
record: define inferrepo in command decorator
Gregory Szorc -
r21787:fb5f34bb default
parent child Browse files
Show More
@@ -460,7 +460,10 b' def qrefresh(origfn, ui, repo, *pats, **'
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().
462 # This command registration is replaced during uisetup().
463 @command('qrecord', [], _('hg qrecord [OPTION]... PATCH [FILE]...'))
463 @command('qrecord',
464 [],
465 _('hg qrecord [OPTION]... PATCH [FILE]...'),
466 inferrepo=True)
464 def qrecord(ui, repo, patch, *pats, **opts):
467 def qrecord(ui, repo, patch, *pats, **opts):
465 '''interactively record a new patch
468 '''interactively record a new patch
466
469
@@ -659,5 +662,3 b' def uisetup(ui):'
659 def _wrapcmd(cmd, table, wrapfn, msg):
662 def _wrapcmd(cmd, table, wrapfn, msg):
660 entry = extensions.wrapcommand(table, cmd, wrapfn)
663 entry = extensions.wrapcommand(table, cmd, wrapfn)
661 entry[1].append(('i', 'interactive', None, msg))
664 entry[1].append(('i', 'interactive', None, msg))
662
663 commands.inferrepo += " record qrecord"
General Comments 0
You need to be logged in to leave comments. Login now