[PATCH 1 of 2] Add a progress indicator

Martin Geisler mg at daimi.au.dk
Fri Dec 12 16:30:57 CST 2008


Stefano Tortarolo <stefano.tortarolo at gmail.com> writes:

> # HG changeset patch
> # User Stefano Tortarolo <stefano.tortarolo at gmail.com>
> # Date 1229025213 -3600
> # Node ID 5ab5ab5dca0b666901f6c31c56005ae9cfabee89
> # Parent  d8cd79fbed3c7b358dd820ff5dee44a7cff362bc
> Add a progress indicator
>
> diff --git a/mercurial/progress.py b/mercurial/progress.py
> new file mode 100644
> --- /dev/null
> +++ b/mercurial/progress.py
> @@ -0,0 +1,174 @@
> +# progress.py - Progress indicator for Mercurial

Are you are aware that there is already a very nice progress bar library
for Python?

  http://pypi.python.org/pypi/progressbar

I have used it once for a small project and it worked very well. It is
only some 250 lines of code vs your 100 lines, but it provides many nice
features: it can display the estimated remaining time and the download
speed. It can also update itself in case the terminal window is resized.

The code is even LGPL, so including it wont be a problem.

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20081212/6c19d0ce/attachment.pgp 


More information about the Mercurial-devel mailing list