Show More
@@ -682,6 +682,15 b' def _entries_walk(repo, includes, exclud' | |||||
682 | for entry in entries: |
|
682 | for entry in entries: | |
683 | yield (_srcstore, entry) |
|
683 | yield (_srcstore, entry) | |
684 |
|
684 | |||
|
685 | for name in cacheutil.cachetocopy(repo): | |||
|
686 | if repo.cachevfs.exists(name): | |||
|
687 | # not really a StoreEntry, but close enough | |||
|
688 | entry = store.SimpleStoreEntry( | |||
|
689 | entry_path=name, | |||
|
690 | is_volatile=True, | |||
|
691 | ) | |||
|
692 | yield (_srccache, entry) | |||
|
693 | ||||
685 |
|
694 | |||
686 | def _v2_walk(repo, includes, excludes, includeobsmarkers): |
|
695 | def _v2_walk(repo, includes, excludes, includeobsmarkers): | |
687 | """emit a seris of files information useful to clone a repo |
|
696 | """emit a seris of files information useful to clone a repo | |
@@ -711,10 +720,6 b' def _v2_walk(repo, includes, excludes, i' | |||||
711 | ft = _filefull |
|
720 | ft = _filefull | |
712 | files.append((vfs_key, f.unencoded_path, ft, file_size)) |
|
721 | files.append((vfs_key, f.unencoded_path, ft, file_size)) | |
713 | totalfilesize += file_size |
|
722 | totalfilesize += file_size | |
714 | for name in cacheutil.cachetocopy(repo): |
|
|||
715 | if repo.cachevfs.exists(name): |
|
|||
716 | totalfilesize += repo.cachevfs.lstat(name).st_size |
|
|||
717 | files.append((_srccache, name, _filefull, None)) |
|
|||
718 | return files, totalfilesize |
|
723 | return files, totalfilesize | |
719 |
|
724 | |||
720 |
|
725 |
General Comments 0
You need to be logged in to leave comments.
Login now