Is it possible to get Mercurial to show progress of long-running push or pull operation? Google tells me basically "no", but does somebody know better? I was expecting something like hg pull -v
...
Asked
Active
Viewed 9,155 times
43

Martin Geisler
- 72,968
- 25
- 171
- 229

mmiika
- 9,970
- 5
- 28
- 34
2 Answers
86
Mercurial 3.5 has progress enabled by default.
Earlier versions can use the standard progress extension shipped since version 1.5. Simply enable the extension by adding this to your hgrc file:
[extensions]
progress =
You will then see progress bars on clone, push, pull, and other operations. The progress bars are only shown after an initial delay of 3 seconds by default. You can easily change this by adding:
[progress]
delay = 1.5
to your hgrc file. See hg help progress
after enabling the extension.

Vadim Kotov
- 8,084
- 8
- 48
- 62

Martin Geisler
- 72,968
- 25
- 171
- 229
-
6 years on - still an extension, it seems? – jez Oct 23 '15 at 20:41
-
@jez: Actually no, Mercurial 3.5 moved the functionality into core and has it enabled by default. A little late for my taste, but at least it's there now :-) – Martin Geisler Oct 29 '15 at 09:22
-
Googling for this doesn't bring up any info on the built-in feature. Wonder who I should blame for this… – Jürgen A. Erhard Apr 08 '22 at 11:05
-
@JürgenA.Erhard, when searching for "Mercurial progress bar" I found https://www.mercurial-scm.org/wiki/ProgressExtension. That page says (tersely) that the functionality is now in core. The relevant settings are then documented here: https://www.selenic.com/mercurial/hgrc.5.html#progress – Martin Geisler Apr 09 '22 at 12:36
37
hg pull -v
-v / --verbose
is a global option that applies to all sub-functions.
If you want extra data:
hg --debug -v pull

Vadim Kotov
- 8,084
- 8
- 48
- 62

Kent Fredric
- 56,416
- 14
- 107
- 150