progress when branching

Jeremy Wilkins jeb at jdwilkins.co.uk
Fri Aug 31 11:26:15 BST 2007


Hi,

I've been able to branch a bazaar repository using the following code.

from bzrlib import branch
from bzrlib import transport

b = branch.Branch.open('.')
nb = b.bzrdir.sprout(transport.get_transport('../new_branch').base,
b.last_revision()).open_branch()

this works great but just blocks until the branching is finished. How
would I do it if I wanted to be able to check progress? I can run the
code in a separate thread to solve the blocking problem but where can
I check the progress - is there a class variable I can read or
similar?

Thanks

jebw



More information about the bazaar mailing list