# HG changeset patch # User Gregory Szorc # Date 2014-05-05 05:36:07 # Node ID fb5f34bb3867c8ebf9f3288236300c7a1fceee59 # Parent c85a0c3537b2ada9f53ab4fa582414eb7ffb1246 record: define inferrepo in command decorator diff --git a/hgext/record.py b/hgext/record.py --- a/hgext/record.py +++ b/hgext/record.py @@ -460,7 +460,10 @@ def qrefresh(origfn, ui, repo, *pats, ** dorecord(ui, repo, committomq, 'qrefresh', True, *pats, **opts) # This command registration is replaced during uisetup(). -@command('qrecord', [], _('hg qrecord [OPTION]... PATCH [FILE]...')) +@command('qrecord', + [], + _('hg qrecord [OPTION]... PATCH [FILE]...'), + inferrepo=True) def qrecord(ui, repo, patch, *pats, **opts): '''interactively record a new patch @@ -659,5 +662,3 @@ def uisetup(ui): def _wrapcmd(cmd, table, wrapfn, msg): entry = extensions.wrapcommand(table, cmd, wrapfn) entry[1].append(('i', 'interactive', None, msg)) - -commands.inferrepo += " record qrecord"