Mercurial > hg
changeset 31456:2545ee88a57e
clone: get rid of ui.backupconfig
author | Jun Wu <quark@fb.com> |
---|---|
date | Thu, 16 Mar 2017 14:18:50 -0700 |
parents | 7b5fb4b0c0e8 |
children | 707f9fd2dcad |
files | mercurial/hg.py |
diffstat | 1 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hg.py Thu Mar 16 14:15:20 2017 -0700 +++ b/mercurial/hg.py Thu Mar 16 14:18:50 2017 -0700 @@ -613,14 +613,10 @@ else: stream = None # internal config: ui.quietbookmarkmove - quiet = local.ui.backupconfig('ui', 'quietbookmarkmove') - try: - local.ui.setconfig( - 'ui', 'quietbookmarkmove', True, 'clone') + overrides = {('ui', 'quietbookmarkmove'): True} + with local.ui.configoverride(overrides, 'clone'): exchange.pull(local, srcpeer, revs, streamclonerequested=stream) - finally: - local.ui.restoreconfig(quiet) elif srcrepo: exchange.push(srcrepo, destpeer, revs=revs, bookmarks=srcrepo._bookmarks.keys())