Mercurial > public > mercurial-scm > hg-stable
diff hgext/graphlog.py @ 32414: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 | 0c9ba2ac60a8 |
line wrap: on
line diff
--- a/hgext/graphlog.py Sat Aug 13 12:29:53 2016 +0900 +++ b/hgext/graphlog.py Sun May 14 16:19:47 2017 +0900 @@ -19,6 +19,7 @@ from mercurial.i18n import _ from mercurial import ( + cmdutil, commands, registrar, ) @@ -51,7 +52,7 @@ _('show changesets within the given named branch'), _('BRANCH')), ('P', 'prune', [], _('do not display revision or any of its ancestors'), _('REV')), - ] + commands.logopts + commands.walkopts, + ] + cmdutil.logopts + cmdutil.walkopts, _('[OPTION]... [FILE]'), inferrepo=True) def glog(ui, repo, *pats, **opts):