I am writing a Mercurial extension in Python and you need to call the "Pull" command using the Mercurial API , but I want to suppress its output using the -quiet flag.
In terms of Hg, I want to execute the following code, but from within my extension:
hg pull --quiet
Given the documentation of the Mercurial API, I thought it would be as simple as:
commands.pull(ui, repo, quiet=True)
Unfortunately, although this does not lead to errors and successfully executes the "Pull" command, the -quiet flag does not seem to pass, since I still see the standard output.
All examples show only passing non-global flags, so I'm a little worried that this is not possible.
What am I doing wrong? How to pass the --quiet flag?
python mercurial mercurial-extension
Michael La Voie
source share