[RFC] Clean up progress bars during fetch

John Arbash Meinel john at arbash-meinel.com
Thu Nov 9 00:07:19 GMT 2006

John Arbash Meinel wrote:
> ...


> Anyway, attached is a diff just against the previous version, which lets
> you see the new progress bars with child progress indicators.
> I almost would avoid adding the child progress until we get http fixed.
> Because it really does look like we are hung. Having the number there
> makes it worse.
> John
> =:->

I figured out a small cheat to prevent it showing a 0/XXX for so long.
Basically, just don't show the progress if total or count is 0.

Still we end up with it hanging because of HTTP inefficiencies. And also
important is that pycurl completely hangs the program while it is
downloading the big file, because it blocks ^C.

I think if we change to an iterative download style (if only by using
the WRITE_FUNCTION parameter to pycurl), this should be helped. Though
getting Vila's urllib stuff merged would mean we could switch over to
that instead. It doesn't help progress, but it does mean you can cancel
during a large download.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: suppress_child_count_0.diff
Type: text/x-patch
Size: 498 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20061108/465bebb2/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20061108/465bebb2/attachment.pgp 

More information about the bazaar mailing list