##// END OF EJS Templates
debugbackupbundle: use new context manager for silencing the ui...
Martin von Zweigbergk -
r48231:1be9bf36 default
parent child Browse files
Show More
@@ -3791,16 +3791,13 b' def debugbackupbundle(ui, repo, *pats, *'
3791 if revs:
3791 if revs:
3792 revs = [other.lookup(rev) for rev in revs]
3792 revs = [other.lookup(rev) for rev in revs]
3793
3793
3794 quiet = ui.quiet
3794 with ui.silent():
3795 try:
3795 try:
3796 ui.quiet = True
3796 other, chlist, cleanupfn = bundlerepo.getremotechanges(
3797 other, chlist, cleanupfn = bundlerepo.getremotechanges(
3797 ui, repo, other, revs, opts[b"bundle"], opts[b"force"]
3798 ui, repo, other, revs, opts[b"bundle"], opts[b"force"]
3798 )
3799 )
3799 except error.LookupError:
3800 except error.LookupError:
3800 continue
3801 continue
3802 finally:
3803 ui.quiet = quiet
3804
3801
3805 try:
3802 try:
3806 if not chlist:
3803 if not chlist:
General Comments 0
You need to be logged in to leave comments. Login now