[Updated] D10885: debugbackupbundle: use new context manager for silencing the ui
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Mon Jun 21 12:19:09 UTC 2021
Closed by commit rHG1be9bf3669cb: debugbackupbundle: use new context manager for silencing the ui (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D10885?vs=28611&id=28642
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D10885/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D10885
AFFECTED FILES
mercurial/debugcommands.py
CHANGE DETAILS
diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -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:
To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210621/2896428a/attachment-0002.html>
More information about the Mercurial-patches
mailing list