progress when branching

Aaron Bentley aaron.bentley at utoronto.ca
Fri Aug 31 15:30:14 BST 2007


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

Jeremy Wilkins wrote:
> b = branch.Branch.open('.')
> nb = b.bzrdir.sprout(transport.get_transport('../new_branch').base

^^ bzrdir.sprout('../new_branch') will work just fine.  No need to
indirect through get_transport.

> b.last_revision()).open_branch()

b.last_revision() is the default, so you can omit it.

> 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?

You can supply your own bzrlib.ui.ui_factory.  This will have
get_nested_progress_bar called, and the progress bar will receive
progress updates.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG2CX20F+nu1YWqI0RAkSqAJ4621nhYDUCAfK0cbsNyv8gGETwogCfU95h
ThTyVF/uW3+y/U8oGF1gv6I=
=pPN3
-----END PGP SIGNATURE-----



More information about the bazaar mailing list