[rfc] progress bar update
Thomas Arendsen Hein
thomas at intevation.de
Tue Apr 4 18:57:23 UTC 2006
* Vadim Gelfer <vadim.gelfer at gmail.com> [20060404 18:57]:
> patch attached. i put in crew if people like.
>
> linux-2.6.16 $ hg up -C tip
> checking for changes in working directory
> resolving manifests
> updating 6291 files
> updating: +++++--------------- 30.0%, 1886 of 6291 files, 12.4 secs of 41 est.
Generally I like it, but ...
> + def cleareol(self):
> + self.ui.status('\033[K')
and maybe even
> + self.ui.status('\r', self.activity, ': ', self.donechar * d,
> + self.leftchar * l)
and
> + self.ui.status('\r', self.activity, ': ', self.donechar * self.ncols,
> + _(' %d%%, %d %s, %s secs') %
> + (frac * 100, self.nsteps, self.items,
> + self.time(elapsed)))
depend on your terminal capabilities.
What do other python programs here?
Thomas
--
Email: thomas at intevation.de
http://intevation.de/~thomas/
More information about the Mercurial
mailing list