The progress bar that doesn't convey any sense of progress (was Re: ...)

Gordon Tyler gordon at doxxx.net
Fri Nov 27 02:54:13 GMT 2009


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

Martin Pool wrote:
> What I typically see is
> 
> [#########/          ]   1071KB   182KB/s | Fetching
> revisions:Inserting stream
> 
> I don't see where the "20 characters" thing comes from.

I've seen some weird overwriting artifacts. Maybe that's just the
regression you were talking about.

Now, I like ASCII art as much as the next guy but I think the text
progress UI might be better if done so:

(/)  45%   1071KB  182KB/s | Fetching revisions: Inserting stream

In order: Spinner, Total progress, Total data transferred (down + up),
Overall average transfer rate, Techno-babble.

The spinner indicates immediate activity, i.e. if it ain't spinning, it
ain't doing stuff. Total data transferred and the overall average
transfer rate should scale their unit (KB, MB, etc.) as appropriate. I
personally like the instantaneous transfer rate because I find the
fluctuations interesting but for most people the overall average should
be fine.

I named techno-babble as such because for the most part, it's of no use
to the average user. I have no idea what "inserting stream" means. It
could be gotten rid of entirely, or it could be changed to display
something more understandable to the average user. For bzr developers
who still want to see the full techno-babble in all its gory glory,
verbose mode should enable that.

> Maybe we should have an option (or just always) print the total data
> and time at end end, like what -Dhpss does?

You could hide it behind verbose mode. If so, you should also include
things like average transfer rate.

Ciao,
Gordon

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJLDz9UAAoJEIrPJfWinA2uAQwH+waNw9ueMo6q7DSqQXCCahRj
qtgVyXIJjGmHHp5/tvTi/l8I3ZG/t2FoXyHLnHx5i8bD2rZUIqcq4ycIFRvVdI7U
HgGKrtv/0I6cPJwbzyXeduK3fYjiwRqDKRNEGwbQJdWj9bIssJ71b4Nhe6HlZFIK
Osi/fdpYcj7kWvGFlshR2EDoua91lXM9VIJB8YnZmq0TiuXH9YLOznlklU1Oy+Q0
Me8gyhG95CgaTCGRgu+y+0qggVgG/lOpSjGsjqfuwrVmEvB3XxZdx8JbM6OdOrmG
6G7VkdCkkO5ICGGaaqW29gdrBwDGKpbcebzKo0LZXiLJWX+411E/1dDf8F4IvYA=
=bMwr
-----END PGP SIGNATURE-----



More information about the bazaar mailing list