diff mercurial/commands.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 b16cb0a27377
children 9fd9f91b0c43
line wrap: on
line diff
--- a/mercurial/commands.py	Sun May 14 16:42:16 2017 +0900
+++ b/mercurial/commands.py	Thu May 04 17:13:12 2017 +0900
@@ -26,6 +26,7 @@
     changegroup,
     cmdutil,
     copies,
+    debugcommands as debugcommandsmod,
     destutil,
     dirstateguard,
     discovery,
@@ -59,6 +60,7 @@
 release = lockmod.release
 
 table = {}
+table.update(debugcommandsmod.command._table)
 
 command = registrar.command(table)