diff -r 6ecd0980d7f9 -r 7a430116f639 mercurial/revset.py --- a/mercurial/revset.py Fri Jun 18 14:17:43 2021 -0700 +++ b/mercurial/revset.py Fri Jun 18 15:48:51 2021 -0700 @@ -1872,9 +1872,10 @@ revs = [repo.lookup(rev) for rev in revs] other = hg.peer(repo, {}, dest) try: - repo.ui.pushbuffer() - outgoing = discovery.findcommonoutgoing(repo, other, onlyheads=revs) - repo.ui.popbuffer() + with repo.ui.silent(): + outgoing = discovery.findcommonoutgoing( + repo, other, onlyheads=revs + ) finally: other.close() missing.update(outgoing.missing)