vcssync: silence clean_hg_repo() (
bug 1369272) r?gps
In some situations reverting a repo can result in a massive amount of output -
in particular reverting state after a failed `mach vendor rust` produces more
than 2700 lines of output. This is deep into "less than useful" territory.
MozReview-Commit-ID: 7VPq4WEWudZ
--- a/vcssync/mozvcssync/util.py
+++ b/vcssync/mozvcssync/util.py
@@ -31,17 +31,17 @@ def run_hg(logger, client, args):
return out.getvalue()
def clean_hg_repo(logger, path):
"""Clean a Mercurial working directory."""
logger.warn('reverting all local changes and purging %s' % path)
with hglib.open(path, 'utf-8', [b'extensions.purge=']) as repo:
- run_hg(logger, repo, [b'revert', b'--no-backup', b'--all'])
+ run_hg(logger, repo, [b'--quiet', b'revert', b'--no-backup', b'--all'])
run_hg(logger, repo, [b'purge', b'--all'])
def get_github_client(token):
"""Obtain a github3 client using an API token for authentication.
If the ``BETAMAX_LIBRARY_DIR`` and ``BETAMAX_CASSETTE`` environment
variables are defined, the ``requests.Session`` used by the client