Mercurial > hg
comparison hgext/schemes.py @ 32337: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 | 198cd5ad9db8 |
children | 75979c8d4572 |
comparison
equal
deleted
inserted
replaced
32336:ff874d34c856 | 32337:46ba2cdda476 |
---|---|
44 import os | 44 import os |
45 import re | 45 import re |
46 | 46 |
47 from mercurial.i18n import _ | 47 from mercurial.i18n import _ |
48 from mercurial import ( | 48 from mercurial import ( |
49 cmdutil, | |
50 error, | 49 error, |
51 extensions, | 50 extensions, |
52 hg, | 51 hg, |
53 pycompat, | 52 pycompat, |
53 registrar, | |
54 templater, | 54 templater, |
55 util, | 55 util, |
56 ) | 56 ) |
57 | 57 |
58 cmdtable = {} | 58 cmdtable = {} |
59 command = cmdutil.command(cmdtable) | 59 command = registrar.command(cmdtable) |
60 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for | 60 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
61 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should | 61 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
62 # be specifying the version(s) of Mercurial they are tested with, or | 62 # be specifying the version(s) of Mercurial they are tested with, or |
63 # leave the attribute unspecified. | 63 # leave the attribute unspecified. |
64 testedwith = 'ships-with-hg-core' | 64 testedwith = 'ships-with-hg-core' |