mercurial/upgrade_utils/engine.py
changeset 46897 1c52d77d7861
parent 46896 cf49e54ef965
child 47062 f38bf44e077f
child 47084 27f1191b1305
equal deleted inserted replaced
46896:cf49e54ef965 46897:1c52d77d7861
   388 def _files_to_copy_post_revlog_clone(srcrepo):
   388 def _files_to_copy_post_revlog_clone(srcrepo):
   389     """yields files which should be copied to destination after revlogs
   389     """yields files which should be copied to destination after revlogs
   390     are cloned"""
   390     are cloned"""
   391     for path, kind, st in sorted(srcrepo.store.vfs.readdir(b'', stat=True)):
   391     for path, kind, st in sorted(srcrepo.store.vfs.readdir(b'', stat=True)):
   392         # don't copy revlogs as they are already cloned
   392         # don't copy revlogs as they are already cloned
   393         if path.endswith((b'.i', b'.d', b'.n', b'.nd')):
   393         if store.revlog_type(path) is not None:
   394             continue
   394             continue
   395         # Skip transaction related files.
   395         # Skip transaction related files.
   396         if path.startswith(b'undo'):
   396         if path.startswith(b'undo'):
   397             continue
   397             continue
   398         # Only copy regular files.
   398         # Only copy regular files.