Mercurial > hg
diff mercurial/dispatch.py @ 32377: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 | 9c023179e8d0 |
children | 71e735bd8170 |
line wrap: on
line diff
--- a/mercurial/dispatch.py Sun May 14 16:42:16 2017 +0900 +++ b/mercurial/dispatch.py Thu May 04 17:13:12 2017 +0900 @@ -25,7 +25,6 @@ cmdutil, color, commands, - debugcommands, demandimport, encoding, error, @@ -750,10 +749,6 @@ rpath = _earlygetopt(["-R", "--repository", "--repo"], args) path, lui = _getlocal(ui, rpath) - # Side-effect of accessing is debugcommands module is guaranteed to be - # imported and commands.table is populated. - debugcommands.command - uis = {ui, lui} if req.repo: