Mercurial > hg
comparison hgext/hgk.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 | dddc4812aa7a |
children | 7d5bc0e5b88f |
comparison
equal
deleted
inserted
replaced
32336:ff874d34c856 | 32337:46ba2cdda476 |
---|---|
43 nullid, | 43 nullid, |
44 nullrev, | 44 nullrev, |
45 short, | 45 short, |
46 ) | 46 ) |
47 from mercurial import ( | 47 from mercurial import ( |
48 cmdutil, | |
49 commands, | 48 commands, |
50 obsolete, | 49 obsolete, |
51 patch, | 50 patch, |
51 registrar, | |
52 scmutil, | 52 scmutil, |
53 ) | 53 ) |
54 | 54 |
55 cmdtable = {} | 55 cmdtable = {} |
56 command = cmdutil.command(cmdtable) | 56 command = registrar.command(cmdtable) |
57 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for | 57 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
58 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should | 58 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
59 # be specifying the version(s) of Mercurial they are tested with, or | 59 # be specifying the version(s) of Mercurial they are tested with, or |
60 # leave the attribute unspecified. | 60 # leave the attribute unspecified. |
61 testedwith = 'ships-with-hg-core' | 61 testedwith = 'ships-with-hg-core' |