Using bzr.dev

John Arbash Meinel john at arbash-meinel.com
Wed Mar 4 02:41:56 GMT 2009


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

Benjamin Peterson wrote:
> Russel Winder <russel.winder <at> concertant.com> writes:
> 
>> I probably should know the answer but . . .
>>
>> I am currently using bzr.dev as my Bazaar as I need to have versions of
>> some plugins that only work with versions of Bazaar not yet released.
>> However this means I get lots of deprecation warnings that I would, to
>> be honest, rather not know about.  Is there an easy way of switching off
>> the deprecation warnings when using bzr.dev?
> 
> You could alias "bzr" to "python -Wignore::DeprecationWarning" /path/to/bzr.
> 

You can call "bzrlib.symbol_versioning.suppress_deprecation_warnings()"

We do it as part of bzrlib.commands.main() when we check that
bzrlib.version_info[3] == 'final' (final release code, rather than 'dev'
or 'candidate').

You could write a plugin that tries to get loaded early to set that,
hack your copy of bzr.dev... though honestly, I don't know what
deprecation warnings you are getting. I run with quite a few plugins,
and only bzr-svn and bzrtools ever give me any grief about versions.

If you have other plugins that are giving DeprecationWarnings, I'll
mention that things that are deprecated are subject to removal, so if
they aren't updated, they may just stop working (well, most likely
they'll start raising Errors, which causes bzr itself to not work well).

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

iEYEARECAAYFAkmt6nQACgkQJdeBCYSNAAMNHACgsPMV5E1X2kvfirPBCdD1ogX4
svUAn0ujdvXMDlCHFkBqfKrm0TdT+ThS
=8pMQ
-----END PGP SIGNATURE-----



More information about the bazaar mailing list