Mercurial > hg
comparison hgext/shelve.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 | bd872f64a8ba |
children | 04baab18d60a |
comparison
equal
deleted
inserted
replaced
32336:ff874d34c856 | 32337:46ba2cdda476 |
---|---|
41 mdiff, | 41 mdiff, |
42 merge, | 42 merge, |
43 node as nodemod, | 43 node as nodemod, |
44 patch, | 44 patch, |
45 phases, | 45 phases, |
46 registrar, | |
46 repair, | 47 repair, |
47 scmutil, | 48 scmutil, |
48 templatefilters, | 49 templatefilters, |
49 util, | 50 util, |
50 vfs as vfsmod, | 51 vfs as vfsmod, |
53 from . import ( | 54 from . import ( |
54 rebase, | 55 rebase, |
55 ) | 56 ) |
56 | 57 |
57 cmdtable = {} | 58 cmdtable = {} |
58 command = cmdutil.command(cmdtable) | 59 command = registrar.command(cmdtable) |
59 # 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 |
60 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should | 61 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
61 # 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 |
62 # leave the attribute unspecified. | 63 # leave the attribute unspecified. |
63 testedwith = 'ships-with-hg-core' | 64 testedwith = 'ships-with-hg-core' |