Lazy bzrlib commands?
Robert Collins
robertc at robertcollins.net
Sun Feb 1 20:43:17 GMT 2009
On Fri, 2009-01-30 at 21:52 +0100, Jelmer Vernooij wrote:
> At the moment, the registry used for commands is named "plugin_cmds". Is
> there any reason why it couldn't or shouldn't be used for bzrlib
> commands, as the name seems to imply?
>
> There are several commands in bzrlib that would be good candidates for
> lazy registration. We could prevent in most cases the loading of:
>
> weave_commands.py
> sign_my_commits.py
> shellcomplete.py
> conflicts.py
> help.py
> cmd_version_info.py
There may be some conflation involved; plugins are orthogonal to
lazy-loading desirability.
Also plugins that decorate or subclass core commands have no way to do
that with the current lazy infrastructure.
plugin commands do behave differently in terms of overriding to 'core'
commands, so using the plugin_cmds is inappropriate for core commands.
-Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090202/0dbb8f2a/attachment.pgp
More information about the bazaar
mailing list