mercurial/upgrade_utils/engine.py
changeset 50668 e06d1a779eb6
parent 50624 e1ee6910f6bc
child 50926 18c8c18993f0
equal deleted inserted replaced
50667:11562d72cb7b 50668:e06d1a779eb6
   368 def _files_to_copy_post_revlog_clone(srcrepo):
   368 def _files_to_copy_post_revlog_clone(srcrepo):
   369     """yields files which should be copied to destination after revlogs
   369     """yields files which should be copied to destination after revlogs
   370     are cloned"""
   370     are cloned"""
   371     for path, kind, st in sorted(srcrepo.store.vfs.readdir(b'', stat=True)):
   371     for path, kind, st in sorted(srcrepo.store.vfs.readdir(b'', stat=True)):
   372         # don't copy revlogs as they are already cloned
   372         # don't copy revlogs as they are already cloned
   373         if store.revlog_type(path) is not None:
   373         if store.is_revlog_file(path):
   374             continue
   374             continue
   375         # Skip transaction related files.
   375         # Skip transaction related files.
   376         if path.startswith(b'undo'):
   376         if path.startswith(b'undo'):
   377             continue
   377             continue
   378         # Only copy regular files.
   378         # Only copy regular files.