[MERGE] Add BzrDirFormat.register_control_format_lazy()
Robert Collins
robertc at robertcollins.net
Thu Jan 29 00:44:57 GMT 2009
On Thu, 2009-01-29 at 11:19 +1100, Robert Collins wrote:
> On Thu, 2009-01-29 at 00:24 +0100, Jelmer Vernooij wrote:
> > This patch adds a way to register non-bzr control formats lazily. This
> > makes it possible for e.g. bzr-svn to not load half of subversion unless
> > bzr-svn is actually used.
>
> A question:
> - does this actually work? Looks to me like the very first 'bzr st' in
> a subdir will load the bzr-svn format object
bb:reject
discussed on IRC - this only saves an import of anything when bzr is
pointed directly at a .bzr directory. Anytime the probe logic doesn't
get a hit immediately it will traverse all the formats anyway: Formats
are lazy objects themselves, they are meant to have just enough code to
bootstrap things.
-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/20090129/61f54798/attachment-0001.pgp
More information about the bazaar
mailing list