Mercurial > hg
diff hgext/churn.py @ 21779:a57deb45c744
churn: define inferrepo in command decorator
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 04 May 2014 22:24:38 -0700 |
parents | 75c8720092ba |
children | 8d43c6bb38c0 |
line wrap: on
line diff
--- 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"