Mercurial > hg
comparison hgext/children.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 | d2554ef04d26 |
comparison
equal
deleted
inserted
replaced
32374:194b0f781132 | 32375:04baab18d60a |
---|---|
17 from __future__ import absolute_import | 17 from __future__ import absolute_import |
18 | 18 |
19 from mercurial.i18n import _ | 19 from mercurial.i18n import _ |
20 from mercurial import ( | 20 from mercurial import ( |
21 cmdutil, | 21 cmdutil, |
22 commands, | |
23 registrar, | 22 registrar, |
24 ) | 23 ) |
25 | 24 |
26 templateopts = commands.templateopts | 25 templateopts = cmdutil.templateopts |
27 | 26 |
28 cmdtable = {} | 27 cmdtable = {} |
29 command = registrar.command(cmdtable) | 28 command = registrar.command(cmdtable) |
30 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for | 29 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
31 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should | 30 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |