--- a/mercurial/streamclone.py Tue Mar 26 13:34:05 2024 +0000
+++ b/mercurial/streamclone.py Tue Mar 26 13:46:44 2024 +0000
@@ -722,10 +722,12 @@
with TempCopyManager() as copy, progress:
# create a copy of volatile files
for k, vfs, e in entries:
- for f in e.files():
- if f.is_volatile:
- f.file_size(vfs) # record the expected size under lock
- copy(vfs.join(f.unencoded_path))
+ if e.maybe_volatile:
+ for f in e.files():
+ if f.is_volatile:
+ # record the expected size under lock
+ f.file_size(vfs)
+ copy(vfs.join(f.unencoded_path))
# the first yield release the lock on the repository
yield None