original_docstring: yields files which should be copied to destination after revlogs
      are cloned
docstring: yields files which should be copied to destination after revlogs
  are cloned
docstring_tokens: yields files which should be copied to destination after revlogs are cloned
code: def _files_to_copy_post_revlog_clone(srcrepo):
      """yields files which should be copied to destination after revlogs
      are cloned"""
      for path, kind, st in sorted(srcrepo.store.vfs.readdir(b'', stat=True)):
          # don't copy revlogs as they are already cloned
          if path.endswith((b'.i', b'.d', b'.n', b'.nd')):
              continue
          # Skip transaction related files.
          if path.startswith(b'undo'):
              continue
          # Only copy regular files.
          if kind != stat.S_IFREG:
              continue
          # Skip other skipped files.
          if path in (b'lock', b'fncache'):
              continue
          # TODO: should we skip cache too?
  
          yield path
code_tokens: def _files_to_copy_post_revlog_clone ( srcrepo ) : for path , kind , st in sorted ( srcrepo . store . vfs . readdir ( b'' , stat = True ) ) : if path . endswith ( ( b'.i' , b'.d' , b'.n' , b'.nd' ) ) : continue if path . startswith ( b'undo' ) : continue if kind != stat . S_IFREG : continue if path in ( b'lock' , b'fncache' ) : continue yield path
short_docstring: yields files which should be copied to destination after revlogs
  are cloned
short_docstring_tokens: yields files which should be copied to destination after revlogs are cloned
comment: """yields files which should be copied to destination after revlogs
      are cloned"""$SEP$# don't copy revlogs as they are already cloned$SEP$# Skip transaction related files.$SEP$# Only copy regular files.$SEP$# Skip other skipped files.$SEP$# TODO: should we skip cache too?