comparison hgext/blackbox.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 055cca8e167b
children 043948c84647
comparison
equal deleted inserted replaced
32336:ff874d34c856 32337:46ba2cdda476
42 42
43 from mercurial.i18n import _ 43 from mercurial.i18n import _
44 from mercurial.node import hex 44 from mercurial.node import hex
45 45
46 from mercurial import ( 46 from mercurial import (
47 cmdutil, 47 registrar,
48 ui as uimod, 48 ui as uimod,
49 util, 49 util,
50 ) 50 )
51 51
52 cmdtable = {} 52 cmdtable = {}
53 command = cmdutil.command(cmdtable) 53 command = registrar.command(cmdtable)
54 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for 54 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
55 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should 55 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
56 # be specifying the version(s) of Mercurial they are tested with, or 56 # be specifying the version(s) of Mercurial they are tested with, or
57 # leave the attribute unspecified. 57 # leave the attribute unspecified.
58 testedwith = 'ships-with-hg-core' 58 testedwith = 'ships-with-hg-core'