~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2005-08-29 06:56:22 UTC
  • Revision ID: mbp@sourcefrog.net-20050829065622-5aa7add87c38f188
- additional trace messages for plugins

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
        k_unsquished = k
52
52
    if not plugin_cmds.has_key(k_unsquished):
53
53
        plugin_cmds[k_unsquished] = cmd
 
54
        mutter('registered plugin command %s', k_unsquished)      
54
55
    else:
55
56
        log_error('Two plugins defined the same command: %r' % k)
56
57
        log_error('Not loading the one in %r' % sys.modules[cmd.__module__])
192
193
 
193
194
    # first look up this command under the specified name
194
195
    cmds = _get_cmd_dict(plugins_override=plugins_override)
 
196
    mutter("all commands: %r", cmds.keys())
195
197
    try:
196
198
        return cmd, cmds[cmd]
197
199
    except KeyError: