diff mercurial/streamclone.py @ 51700:7f0cb9ee0534

Backout accidental publication of a large range of revisions I accidentally published 25e7f9dcad0f::bd1483fd7088, this is the inverse.
author Raphaël Gomès <rgomes@octobus.net>
date Tue, 23 Jul 2024 10:02:46 +0200
parents 493034cc3265
children ca7bde5dbafb
line wrap: on
line diff
--- a/mercurial/streamclone.py	Mon Jul 22 16:49:38 2024 +0200
+++ b/mercurial/streamclone.py	Tue Jul 23 10:02:46 2024 +0200
@@ -547,7 +547,6 @@
 _srcstore = b's'  # store (svfs)
 _srccache = b'c'  # cache (cache)
 
-
 # This is it's own function so extensions can override it.
 def _walkstreamfullstorefiles(repo):
     """list snapshot file from the store"""
@@ -810,6 +809,7 @@
     """
 
     with repo.lock():
+
         repo.ui.debug(b'scanning\n')
 
         entries = _entries_walk(
@@ -857,6 +857,7 @@
     # considering the files to preserve, disabling the gc while we do so helps
     # performance a lot.
     with repo.lock(), util.nogc():
+
         repo.ui.debug(b'scanning\n')
 
         entries = _entries_walk(
@@ -989,6 +990,7 @@
         with repo.transaction(b'clone'):
             ctxs = (vfs.backgroundclosing(repo.ui) for vfs in vfsmap.values())
             with nested(*ctxs):
+
                 for i in range(entrycount):
                     filecount = util.uvarintdecodestream(fp)
                     if filecount == 0:
@@ -1121,6 +1123,7 @@
 
     with dest_repo.lock():
         with src_repo.lock():
+
             # bookmark is not integrated to the streaming as it might use the
             # `repo.vfs` and they are too many sentitive data accessible
             # through `repo.vfs` to expose it to streaming clone.