comparison hgext/churn.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 a0e46f6b248b
children 04baab18d60a
comparison
equal deleted inserted replaced
32336:ff874d34c856 32337:46ba2cdda476
18 from mercurial import ( 18 from mercurial import (
19 cmdutil, 19 cmdutil,
20 commands, 20 commands,
21 encoding, 21 encoding,
22 patch, 22 patch,
23 registrar,
23 scmutil, 24 scmutil,
24 util, 25 util,
25 ) 26 )
26 27
27 cmdtable = {} 28 cmdtable = {}
28 command = cmdutil.command(cmdtable) 29 command = registrar.command(cmdtable)
29 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for 30 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
30 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should 31 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
31 # be specifying the version(s) of Mercurial they are tested with, or 32 # be specifying the version(s) of Mercurial they are tested with, or
32 # leave the attribute unspecified. 33 # leave the attribute unspecified.
33 testedwith = 'ships-with-hg-core' 34 testedwith = 'ships-with-hg-core'