# HG changeset patch # User Pierre-Yves David # Date 1658826643 -7200 # Node ID f64f66167afc2a3a710515b21352e99f2be7fa83 # Parent c6aac50038bb0abdb5a5302ec7985c3f8fef44b6 tree-discovery: fix the request debug output and progress location This is now associated with each request. diff -r c6aac50038bb -r f64f66167afc mercurial/treediscovery.py --- a/mercurial/treediscovery.py Tue Jul 26 10:48:06 2022 +0200 +++ b/mercurial/treediscovery.py Tue Jul 26 11:10:43 2022 +0200 @@ -118,12 +118,13 @@ seen.add(n[0]) if r: - reqcnt += 1 - progress.increment() - repo.ui.debug( - b"request %d: %s\n" % (reqcnt, b" ".join(map(short, r))) - ) for p in range(0, len(r), 10): + reqcnt += 1 + progress.increment() + if repo.ui.debugflag: + msg = b"request %d: %s\n" + msg %= (reqcnt, b" ".join(map(short, r))) + repo.ui.debug(msg) with remote.commandexecutor() as e: subset = r[p : p + 10] if audit is not None: