--- a/mercurial/streamclone.py Thu Jul 18 12:03:29 2024 +0200
+++ b/mercurial/streamclone.py Thu Jul 18 12:36:12 2024 +0200
@@ -547,6 +547,7 @@
_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"""
@@ -809,7 +810,6 @@
"""
with repo.lock():
-
repo.ui.debug(b'scanning\n')
entries = _entries_walk(
@@ -857,7 +857,6 @@
# 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(
@@ -990,7 +989,6 @@
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:
@@ -1123,7 +1121,6 @@
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.