[PATCH 0 of 2] Progress: refactored

Stefano Tortarolo stefano.tortarolo at gmail.com
Sat Dec 13 11:57:10 CST 2008


2008/12/13 Stefano Tortarolo <stefano.tortarolo at gmail.com>:
> I've done some refactoring.
> Now it's easier to use custom displayers, you just have to call ui.setprogressdisplayer with a suitable displayer.
> A suitable displayer has to provide some methods:
>        - isactive(): is allowed to show something (e.g., isatty())
>        - setprogresshandler(progress), update(), finish() and interrupt(): I guess these are self-explanatory
>

I forgot to mention that you can tweak some aspects in .hgrc.

e.g.,
[progress]
threshold = -1
It will behave like a simple ui.status

Stefano


More information about the Mercurial-devel mailing list