[MERGE] no-flicker progress bars
Aaron Bentley
aaron.bentley at utoronto.ca
Wed Jun 21 03:47:48 BST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
Here's a patch for progress bars that hides progress indicators until at
least 1 second has passed. This eliminates the flicker we've been
seeing with that 'reading knit index' message, but works pretty well
with longer operations like "merge", too.
The downside is operations that update infrequently may not show any
progress indication now. However, we can disable this throttling
behavior on a case-by-case basis if need be.
Note that in _BaseProgressBar, start_time was being set, but it was
being overridden (and set to None) in TTYProgressBar, causing the ETA
not to be shown. I've restored the start_time, but defaulted the ETA to
off, to mimic the existing behaviour.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEmLNU0F+nu1YWqI0RAq3uAJ4k1ThwWk6uR7zW/mpYuX7LZrupZgCgiIFV
s1t2h8CZ+XgBjE8X7IHOpdw=
=lj21
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: noflicker.patch
Type: text/x-patch
Size: 4084 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060620/7219551d/attachment.bin
More information about the bazaar
mailing list