comparison tests/drawdag.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 911057981ba4
children 4d780d510b44
comparison
equal deleted inserted replaced
32336:ff874d34c856 32337:46ba2cdda476
78 import collections 78 import collections
79 import itertools 79 import itertools
80 80
81 from mercurial.i18n import _ 81 from mercurial.i18n import _
82 from mercurial import ( 82 from mercurial import (
83 cmdutil,
84 context, 83 context,
85 error, 84 error,
86 node, 85 node,
86 registrar,
87 scmutil, 87 scmutil,
88 tags as tagsmod, 88 tags as tagsmod,
89 ) 89 )
90 90
91 cmdtable = {} 91 cmdtable = {}
92 command = cmdutil.command(cmdtable) 92 command = registrar.command(cmdtable)
93 93
94 _pipechars = '\\/+-|' 94 _pipechars = '\\/+-|'
95 _nonpipechars = ''.join(chr(i) for i in xrange(33, 127) 95 _nonpipechars = ''.join(chr(i) for i in xrange(33, 127)
96 if chr(i) not in _pipechars) 96 if chr(i) not in _pipechars)
97 97