diff -r b16cb0a27377 -r c942c83ac2ec mercurial/dispatch.py --- 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: