Mercurial > hg
comparison contrib/debugshell.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 | 11b8b740d54a |
children | aaad36b88298 |
comparison
equal
deleted
inserted
replaced
32336:ff874d34c856 | 32337:46ba2cdda476 |
---|---|
4 from __future__ import absolute_import | 4 from __future__ import absolute_import |
5 import code | 5 import code |
6 import mercurial | 6 import mercurial |
7 import sys | 7 import sys |
8 from mercurial import ( | 8 from mercurial import ( |
9 cmdutil, | |
10 demandimport, | 9 demandimport, |
10 registrar, | |
11 ) | 11 ) |
12 | 12 |
13 cmdtable = {} | 13 cmdtable = {} |
14 command = cmdutil.command(cmdtable) | 14 command = registrar.command(cmdtable) |
15 | 15 |
16 def pdb(ui, repo, msg, **opts): | 16 def pdb(ui, repo, msg, **opts): |
17 objects = { | 17 objects = { |
18 'mercurial': mercurial, | 18 'mercurial': mercurial, |
19 'repo': repo, | 19 'repo': repo, |