Mercurial > public > mercurial-scm > hg-stable
diff mercurial/debugcommands.py @ 32416:c942c83ac2ec
debugcommands: use temporary dict for its command table
Instead, load the table by commands.py so the debug commands should always
be populated. The table in debugcommands.py is unnamed so extension authors
wouldn't be confused to wrap debugcommands.table in place of commands.table.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 04 May 2017 17:13:12 +0900 |
parents | b16cb0a27377 |
children | 952017471f93 |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Sun May 14 16:42:16 2017 +0900 +++ b/mercurial/debugcommands.py Thu May 04 17:13:12 2017 +0900 @@ -32,7 +32,6 @@ changegroup, cmdutil, color, - commands, context, dagparser, dagutil, @@ -71,9 +70,7 @@ release = lockmod.release -# We reuse the command table from commands because it is easier than -# teaching dispatch about multiple tables. -command = registrar.command(commands.table) +command = registrar.command() @command('debugancestor', [], _('[INDEX] REV1 REV2'), optionalrepo=True) def debugancestor(ui, repo, *args):