mercurial/streamclone.py
changeset 51551 6e4c8366c5ce
parent 51550 463e63aa547c
child 51552 49faa72b994e
equal deleted inserted replaced
51550:463e63aa547c 51551:6e4c8366c5ce
   848     - holding the lock for a shorter time
   848     - holding the lock for a shorter time
   849     - improving progress information
   849     - improving progress information
   850     - ways to adjust the number of expected entries/files ?
   850     - ways to adjust the number of expected entries/files ?
   851     """
   851     """
   852 
   852 
   853     with repo.lock():
   853     # Python is getting crazy at all the small container we creates while
       
   854     # considering the files to preserve, disabling the gc while we do so helps
       
   855     # performance a lot.
       
   856     with repo.lock(), util.nogc():
   854 
   857 
   855         repo.ui.debug(b'scanning\n')
   858         repo.ui.debug(b'scanning\n')
   856 
   859 
   857         entries = _entries_walk(
   860         entries = _entries_walk(
   858             repo,
   861             repo,