bzr-0.9 release candidate 1

John Arbash Meinel john at arbash-meinel.com
Fri Aug 4 15:50:13 BST 2006


T Budiman wrote:
> I was using bzr 0.8.2,
> then I installed bzr 0.9rc1,
> and now I get this message in bzr commands:
> 
> /usr/lib/python2.4/site-packages/bzrlib/plugins/bzrtools/__init__.py:21:
> DeprecationWarning: Modifying DEFAULT_IGNORE was
> deprecated in version 0.9. Consider using
> bzrlib.ignores.add_unique_user_ignores or
> bzrlib.ignores.add_runtime_ignores
>   DEFAULT_IGNORE.append('./.shelf')
> /usr/lib/python2.4/site-packages/bzrlib/plugins/bzrtools/__init__.py:22:
> DeprecationWarning: Modifying DEFAULT_IGNORE was
> deprecated in version 0.9. Consider using
> bzrlib.ignores.add_unique_user_ignores or
> bzrlib.ignores.add_runtime_ignores
>   DEFAULT_IGNORE.append('./.bzr-shelf*')
> 
> What should I do? I have tried deleting the ~/.bazaar
> directory but the message is still there.
> 
> T. Budiman

Look closely at the error you are getting:

/usr/lib/python2.4/site-packages/bzrlib/plugins/bzrtools/__init__.py:22

You have an old version of 'bzrtools' installed in
/usr/lib/python2.4/site-packages/bzrlib/plugins/

You can download and install the latest development version, which is
compatible with 0.9.

Unfortunately, bzrtools is only maintained to be compatible with a
specific bzr release. (so the dev version of bzrtools is not compatible
with bzr-0.8.2).

This specific Warning can be fixed manually if you so desire.
If you edit
/usr/lib/python2.4/site-packages/bzrlib/plugins/bzrtools/__init__.py

You can change the lines:
DEFAULT_IGNORE.append('./.shelf')
DEFAULT_IGNORE.append('./.bzr-shelf*')

to:

try:
  from bzrlib import ignores
except ImportError:
  DEFAULT_IGNORE.append('./.shelf')
  DEFAULT_IGNORE.append('./.bzr-shelf*')
else:
  ignores.add_runtime_ignores(['./.shelf', './.bzr-shelf*'])

That should be compatible with bzr-0.8.2 and bzr-0.9rc1.

Probably not all commands will work with both, but at least you won't
get the deprecation warnings, and the plugin will load for both versions
of bzr.

John
=:->


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060804/c28be7eb/attachment.pgp 


More information about the bazaar mailing list