Mercurial > hg-stable
diff hgext/children.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 | d2554ef04d26 |
line wrap: on
line diff
--- a/hgext/children.py Sat Aug 13 12:29:53 2016 +0900 +++ b/hgext/children.py Sun May 14 16:19:47 2017 +0900 @@ -19,11 +19,10 @@ from mercurial.i18n import _ from mercurial import ( cmdutil, - commands, registrar, ) -templateopts = commands.templateopts +templateopts = cmdutil.templateopts cmdtable = {} command = registrar.command(cmdtable)