[MERGE] Use registry for revision specifiers

John Arbash Meinel john at arbash-meinel.com
Wed Jan 28 17:57:05 GMT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jelmer Vernooij wrote:
> The attached patch changes the revision specifiers to use a registry
> rather than a list of items. This allows lazy registration of revision
> specifiers, such as "svn:". 
> 
> Revision specifiers and control formats are the only two things that
> can't be lazily registered yet and that trigger loading of more than
> just bzrlib.plugins.svn.__init__ when running (non-svn) bzr operations
> and bzr-svn is installed.
> 
> Cheers,
> 
> Jelmer
> 

If we wanted to be nice and allow backwards compatibility, we could
still allow for SPEC_TYPES, and just use the deprecated_list I wrote a
long time ago:

 bzrlib.symbol_versioning.deprecated_list

I would like to do the backwards compatible thing, especially since it
means that older versions of things like bzr-svn won't just die because
a variable they expect isn't there

BB:tweak

Other than that, it looks good.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmAnHEACgkQJdeBCYSNAAOxtQCfQpkkMCmaDMm7uL/ClZ1EOP94
624AniBDhGIRrtak4jhJ+RAG+PHIevmM
=Kgxm
-----END PGP SIGNATURE-----



More information about the bazaar mailing list