How to update tree using bzrlib

Robert Collins robertc at robertcollins.net
Sun Feb 22 13:05:06 GMT 2009


On Sun, 2009-02-22 at 13:54 +0100, Nicholas Allen wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
> > 
> > I saw there is an update method on the Branch class. Is this the right
> > method to call or is this only for bound branches. Will this fail if the
> > branch doesn't have a tree?
> 
> It seems this method only updates from master location but does not
> update the working tree. I notice there is a class called WorkingTree
> and it has an update method. How do I obtain the WorkingTree object for
> a branch though?

If they are colocated its branch.bzrdir.open_workingtree()

I suggest(urge, beg etc) that you use the email configuration bzr-email
does, rather than different settings.

-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/20090223/0a23e7df/attachment.pgp 


More information about the bazaar mailing list