vcssync: silence clean_hg_repo() (bug 1369272) r?gps draft
authorbyron jones <glob@mozilla.com>
Thu, 01 Jun 2017 13:01:25 +0800
changeset 11134 fa2291537f40d365ed2b7ec10f778bad7d46c7f0
parent 11109 4da46067f88bd5383453379fe8b748d4a4548955
push id1694
push userbjones@mozilla.com
push dateThu, 01 Jun 2017 05:02:17 +0000
reviewersgps
bugs1369272
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
vcssync/mozvcssync/util.py
--- 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