--- a/mercurial/debugcommands.py Fri Jun 18 15:48:51 2021 -0700
+++ b/mercurial/debugcommands.py Fri Jun 18 16:00:58 2021 -0700
@@ -3791,16 +3791,13 @@
if revs:
revs = [other.lookup(rev) for rev in revs]
- quiet = ui.quiet
- try:
- ui.quiet = True
- other, chlist, cleanupfn = bundlerepo.getremotechanges(
- ui, repo, other, revs, opts[b"bundle"], opts[b"force"]
- )
- except error.LookupError:
- continue
- finally:
- ui.quiet = quiet
+ with ui.silent():
+ try:
+ other, chlist, cleanupfn = bundlerepo.getremotechanges(
+ ui, repo, other, revs, opts[b"bundle"], opts[b"force"]
+ )
+ except error.LookupError:
+ continue
try:
if not chlist: