[MERGE REVIEW] Progress bar shows overall progess, esp for merge and revert
Aaron Bentley
aaron.bentley at utoronto.ca
Thu Mar 9 17:38:31 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
I've built on Robert's nested progress bar stuff to implement an overall
progress bar. This indicates the overall progress, with child progress
objects adding a 'child fraction' to the overall progress bar.
So if you have a stack depth of 3 and
bottom = 1/2
middle = 3/5
top = 1/4
the overall indicator will be at (1+((3+(1/4))/5))/2 * 100 = 82.5%
In addition, this patch hides the ETA by default (because there are far
fewer top-level changes, so it's rarely displayed) and shows a spinner
(which is updated every time a child is updated, subject to throttling).
This patch also introduces the ProgressPhase object, a helper for
managing progress in a multi-phase operation like, say "merge" or "revert".
It also updates "merge" and "revert" to use the API properly. What a
coincidence!
Patch attached, or see bzr.ab
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFEEGgW0F+nu1YWqI0RAmCRAJsHs99AZzQXbqANYWIqZ4E7g3ZhdgCdEq1d
wyva9/o8OYvKhy2PLjAnsHE=
=00mY
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: total-progress.patch
Type: text/x-patch
Size: 33433 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060309/4977d0ad/attachment.bin
More information about the bazaar
mailing list