[PATCH 0 of 3] Progress indicator
Thomas Arendsen Hein
thomas at intevation.de
Mon Jul 23 02:48:33 CDT 2007
Hi!
The following patches add a progress indicator for 'hg update' and
'hg merge'. Support for other commands is planned, most notably
network operations.
By default the output looks like this:
(only one 'updating' line is shown, I wanted to show how it grows)
updating 0%..10%
updating 0%..10%..20%..30%..40%
updating 0%..10%..20%..30%..40%..50%..60%..70%..80%..90%
updating 0%..10%..20%..30%..40%..50%..60%..70%..80%..90%..100%
21618 files updated, 0 files merged, 0 files removed, 0 files unresolved
The third patch adds an extension to provide an enhanced progress
indicator by using http://cheeseshop.python.org/pypi/progressbar/2.2
which looks like this: I
updating 13%|######### | ETA: 00:00:18
updating 41%|############################ | ETA: 00:00:14
updating 93%|################################################################# | ETA: 00:00:01
updating 100%|######################################################################| Time: 00:00:27
21618 files updated, 0 files merged, 0 files removed, 0 files unresolved
With both, the simple and the enhanced version, messages that are
displayed while the progress indicator is active will work.
With the simple version, they are displayed on a new line and the
progress indicator will be printed again in full the next time its
display would change.
With the enhanced version the progress bar is removed for the
message and displayed again after it.
Comments?
Thomas
--
thomas at intevation.de - http://intevation.de/~thomas/ - OpenPGP key: 0x5816791A
Intevation GmbH, Osnabrueck - Register: Amtsgericht Osnabrueck, HR B 18998
Geschaeftsfuehrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
More information about the Mercurial-devel
mailing list