Closed by commit rHGcf25e525b7ae: ui: option to preserve the progress bar
(authored by joerg.sonnenberger).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs
Review".
REPOSITORY
rHG Mercurial
CHAN
joerg.sonnenberger updated this revision to Diff 17154.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D6843?vs=16520&id=17154
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D6843/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D6843
AFF
This revision now requires changes to proceed.
indygreg added a comment.
indygreg requested changes to this revision.
I think this is a useful feature. I've wanted this in automated environment
so the last state from the progress bar is preserved, for example.
But I agree with Augie that
joerg.sonnenberger added a comment.
The goal here is to allow something like "hg fast-export | git fast-import"
to show a proper progress bar.
At the moment every write via ui.write and friends will hide the progress bar
and re-enable it, even when stdout doesn't affect the terminal state.
durin42 added a comment.
Shouldn't we print a newline to preserve the progress bar? I guess I'm not
following the logic.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D6843/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D6843
To: joerg.sonnenb
joerg.sonnenberger created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Some interface like the fast-import format of git are meant for pipe
processing. It can be still desirable to have progress bars in this
case, but cle