mercurial/streamclone.py
changeset 51552 49faa72b994e
parent 51551 6e4c8366c5ce
child 51587 8cd317c033b8
equal deleted inserted replaced
51551:6e4c8366c5ce 51552:49faa72b994e
   720     )
   720     )
   721     progress.update(0)
   721     progress.update(0)
   722     with TempCopyManager() as copy, progress:
   722     with TempCopyManager() as copy, progress:
   723         # create a copy of volatile files
   723         # create a copy of volatile files
   724         for k, vfs, e in entries:
   724         for k, vfs, e in entries:
   725             for f in e.files():
   725             if e.maybe_volatile:
   726                 if f.is_volatile:
   726                 for f in e.files():
   727                     f.file_size(vfs)  # record the expected size under lock
   727                     if f.is_volatile:
   728                     copy(vfs.join(f.unencoded_path))
   728                         # record the expected size under lock
       
   729                         f.file_size(vfs)
       
   730                         copy(vfs.join(f.unencoded_path))
   729         # the first yield release the lock on the repository
   731         # the first yield release the lock on the repository
   730         yield None
   732         yield None
   731 
   733 
   732         yield util.uvarintencode(total_entry_count)
   734         yield util.uvarintencode(total_entry_count)
   733 
   735