comparison 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
comparison
equal deleted inserted replaced
32376:b16cb0a27377 32377:c942c83ac2ec
24 bookmarks, 24 bookmarks,
25 bundle2, 25 bundle2,
26 changegroup, 26 changegroup,
27 cmdutil, 27 cmdutil,
28 copies, 28 copies,
29 debugcommands as debugcommandsmod,
29 destutil, 30 destutil,
30 dirstateguard, 31 dirstateguard,
31 discovery, 32 discovery,
32 encoding, 33 encoding,
33 error, 34 error,
57 ) 58 )
58 59
59 release = lockmod.release 60 release = lockmod.release
60 61
61 table = {} 62 table = {}
63 table.update(debugcommandsmod.command._table)
62 64
63 command = registrar.command(table) 65 command = registrar.command(table)
64 66
65 # label constants 67 # label constants
66 # until 3.5, bookmarks.current was the advertised name, not 68 # until 3.5, bookmarks.current was the advertised name, not