remotefilelog: honor --quiet for background repack

Summary:
We would always print that a background repack is started, regardless of
whether --quiet was being passed in.

Reviewed By: quark-zju

Differential Revision: D17677229

fbshipit-source-id: 4e7d2fa355f11fdeea0e4cb59f78bc8f0c56b242
This commit is contained in:
Xavier Deguillard 2019-10-01 14:31:57 -07:00 committed by Facebook Github Bot
parent c6a432e186
commit a6c6909237
3 changed files with 1 additions and 3 deletions

View File

@ -72,7 +72,7 @@ def backgroundrepack(repo, incremental=True, packsonly=False, looseonly=False):
cmd = " ".join(map(util.shellquote, cmd))
repo.ui.warn(msg)
repo.ui.status(msg)
runshellcommand(cmd, encoding.environ)

View File

@ -294,7 +294,6 @@
$ hg commit -m 'move z -> z2'
$ cd ../packprefetch
$ hg pull -q
(running background incremental repack)
$ hg prefetch -r tip
1 files fetched over 1 fetches - (1 misses, 0.00% hit ratio) over * (glob)
$ hg up tip -q

View File

@ -74,7 +74,6 @@
$TESTTMP/hgcache/repos
$ hg pull -q --config remotefilelog.backgroundrepack=True --config remotefilelog.packsonlyrepack=True
(running background incremental repack)
$ sleep 0.5
$ hg debugwaitonprefetch >/dev/null 2>%1