Mercurial > hg-stable
comparison hgext/children.py @ 32376:46ba2cdda476
registrar: move cmdutil.command to registrar module (API)
cmdutil.command wasn't a member of the registrar framework only for a
historical reason. Let's make that happen. This patch keeps cmdutil.command
as an alias for extension compatibility.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 09 Jan 2016 23:07:20 +0900 |
parents | d5883fd055c6 |
children | 04baab18d60a |
comparison
equal
deleted
inserted
replaced
32375:ff874d34c856 | 32376:46ba2cdda476 |
---|---|
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, | 22 commands, |
23 registrar, | |
23 ) | 24 ) |
24 | 25 |
25 templateopts = commands.templateopts | 26 templateopts = commands.templateopts |
26 | 27 |
27 cmdtable = {} | 28 cmdtable = {} |
28 command = cmdutil.command(cmdtable) | 29 command = registrar.command(cmdtable) |
29 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for | 30 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
30 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should | 31 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
31 # be specifying the version(s) of Mercurial they are tested with, or | 32 # be specifying the version(s) of Mercurial they are tested with, or |
32 # leave the attribute unspecified. | 33 # leave the attribute unspecified. |
33 testedwith = 'ships-with-hg-core' | 34 testedwith = 'ships-with-hg-core' |