Mercurial > hg
diff hgext/churn.py @ 32375:04baab18d60a
commands: move templates of common command options to cmdutil (API)
The goal is to get rid of the debugcommands -> commands dependency.
Since globalopts is the property of the commands, it's kept in the commands
module.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 14 May 2017 16:19:47 +0900 |
parents | 46ba2cdda476 |
children | 50586a0a946f |
line wrap: on
line diff
--- a/hgext/churn.py Sat Aug 13 12:29:53 2016 +0900 +++ b/hgext/churn.py Sun May 14 16:19:47 2017 +0900 @@ -17,7 +17,6 @@ from mercurial.i18n import _ from mercurial import ( cmdutil, - commands, encoding, patch, registrar, @@ -115,7 +114,7 @@ ('s', 'sort', False, _('sort by key (default: sort by count)')), ('', 'diffstat', False, _('display added/removed lines separately')), ('', 'aliases', '', _('file with email aliases'), _('FILE')), - ] + commands.walkopts, + ] + cmdutil.walkopts, _("hg churn [-d DATE] [-r REV] [--aliases FILE] [FILE]"), inferrepo=True) def churn(ui, repo, *pats, **opts):