bzrlib.branch.BzrBranch.working_tree was deprecated in version 0.8
Aaron Bentley
aaron.bentley at utoronto.ca
Sat Mar 11 15:07:48 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Erik de Castro Lopo wrote:
| Hi all,
|
| I'm using the vimdiff plugin from :
|
| http://bzr.arbash-meinel.com/plugins/vimdiff/
|
| and getting a deprecation warning of :
|
| $HOME/.bazaar/plugins/vimdiff/__init__.py:52:
| DeprecationWarning: bzrlib.branch.BzrBranch.working_tree
| was deprecated in version 0.8.
|
| Was this function replaced with something else? If so what?
Not really. This is a function that gets the working tree of the
branch. But now, a branch may have many working trees, and you may get
the wrong one. E.g.
~/my/standalone/branch
~/my/checkout/of/standalone/branch
If you do
Branch.open_containing('~/my/checkout/of/standalone/branch').working_tree()
you get the ~/my/standalone/branch tree.
So the function is deprecated because it's the Wrong Thing to do. You
should start with WorkingTree.open_containing(), not
Branch.open_containing().
| Is anyone else maintaining a version of vimdiff comaptible
| with current bzr.dev?
Yes.
http://code.aaronbentley.com/bzr/vimdiff/
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFEEufE0F+nu1YWqI0RAl3FAJ9U7eINiesd+Gn6pHy83+CQsSnUGQCfe95B
GdmTDBn3uvpJtYlPA2xqAIg=
=5tGY
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list