[MERGE] Support for lazy registation of commands

John Arbash Meinel john at arbash-meinel.com
Wed Sep 3 20:01:52 BST 2008

John Arbash Meinel has voted resubmit.
Status is now: Resubmit
Honestly, I would rather see the command layer get an overhaul so that 
we can move all core commands into being lazily loaded. I'm not 100% 
sure what we need without accessing the actual class, at a minimum I 
know we need the names. But I don't think we need options, etc. We can 
get those when we import the command and get the real object.

I, too, would rather see this as a 
"bzrlib.commands.registry.register_lazy()" rather than adding a helper 
function that basically proxies for it. (We would keep the existing 
'register_command' function in order to proxy into the registry for 
backwards compatibility.)

For details, see: 
Project: Bazaar

More information about the bazaar mailing list