mercurial/hg.py
changeset 31456 2545ee88a57e
parent 31322 4282feb79432
child 31841 9ff5a124d111
equal deleted inserted replaced
31455:7b5fb4b0c0e8 31456:2545ee88a57e
   611                     if pull:
   611                     if pull:
   612                         stream = False
   612                         stream = False
   613                     else:
   613                     else:
   614                         stream = None
   614                         stream = None
   615                 # internal config: ui.quietbookmarkmove
   615                 # internal config: ui.quietbookmarkmove
   616                 quiet = local.ui.backupconfig('ui', 'quietbookmarkmove')
   616                 overrides = {('ui', 'quietbookmarkmove'): True}
   617                 try:
   617                 with local.ui.configoverride(overrides, 'clone'):
   618                     local.ui.setconfig(
       
   619                         'ui', 'quietbookmarkmove', True, 'clone')
       
   620                     exchange.pull(local, srcpeer, revs,
   618                     exchange.pull(local, srcpeer, revs,
   621                                   streamclonerequested=stream)
   619                                   streamclonerequested=stream)
   622                 finally:
       
   623                     local.ui.restoreconfig(quiet)
       
   624             elif srcrepo:
   620             elif srcrepo:
   625                 exchange.push(srcrepo, destpeer, revs=revs,
   621                 exchange.push(srcrepo, destpeer, revs=revs,
   626                               bookmarks=srcrepo._bookmarks.keys())
   622                               bookmarks=srcrepo._bookmarks.keys())
   627             else:
   623             else:
   628                 raise error.Abort(_("clone from remote to remote not supported")
   624                 raise error.Abort(_("clone from remote to remote not supported")