# HG changeset patch # User Gregory Szorc # Date 1399267478 25200 # Node ID a57deb45c744d982d0ab2e115347168eb6830228 # Parent f6a6d07b66b30d7a75aef0f5bfdc4d1179731c97 churn: define inferrepo in command decorator diff -r f6a6d07b66b3 -r a57deb45c744 hgext/churn.py --- a/hgext/churn.py Sun May 04 22:22:59 2014 -0700 +++ b/hgext/churn.py Sun May 04 22:24:38 2014 -0700 @@ -104,7 +104,8 @@ ('', 'diffstat', False, _('display added/removed lines separately')), ('', 'aliases', '', _('file with email aliases'), _('FILE')), ] + commands.walkopts, - _("hg churn [-d DATE] [-r REV] [--aliases FILE] [FILE]")) + _("hg churn [-d DATE] [-r REV] [--aliases FILE] [FILE]"), + inferrepo=True) def churn(ui, repo, *pats, **opts): '''histogram of changes to the repository @@ -197,5 +198,3 @@ for name, count in rate: ui.write(format(name, count)) - -commands.inferrepo += " churn"