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