Mercurial > hg
comparison hgext/purge.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 | d5883fd055c6 |
children | 04baab18d60a |
comparison
equal
deleted
inserted
replaced
32336:ff874d34c856 | 32337:46ba2cdda476 |
---|---|
27 | 27 |
28 import os | 28 import os |
29 | 29 |
30 from mercurial.i18n import _ | 30 from mercurial.i18n import _ |
31 from mercurial import ( | 31 from mercurial import ( |
32 cmdutil, | |
33 commands, | 32 commands, |
34 error, | 33 error, |
34 registrar, | |
35 scmutil, | 35 scmutil, |
36 util, | 36 util, |
37 ) | 37 ) |
38 | 38 |
39 cmdtable = {} | 39 cmdtable = {} |
40 command = cmdutil.command(cmdtable) | 40 command = registrar.command(cmdtable) |
41 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for | 41 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
42 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should | 42 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
43 # be specifying the version(s) of Mercurial they are tested with, or | 43 # be specifying the version(s) of Mercurial they are tested with, or |
44 # leave the attribute unspecified. | 44 # leave the attribute unspecified. |
45 testedwith = 'ships-with-hg-core' | 45 testedwith = 'ships-with-hg-core' |