hgext/remotefilelog/remotefilelogserver.py
changeset 50471 521fec115dad
parent 49305 53e9422a9b45
child 50473 5a2fb64d38b2
--- a/hgext/remotefilelog/remotefilelogserver.py	Mon May 15 08:56:08 2023 +0200
+++ b/hgext/remotefilelog/remotefilelogserver.py	Mon May 15 08:56:23 2023 +0200
@@ -162,25 +162,34 @@
                             ):
                                 n = util.pconvert(fp[striplen:])
                                 d = store.decodedir(n)
-                                t = store.FILETYPE_OTHER
-                                yield (t, d, st.st_size)
+                                yield store.StoreEntry(
+                                    unencoded_path=d,
+                                    is_revlog=True,
+                                    revlog_type=None,
+                                    is_revlog_main=False,
+                                    is_volatile=False,
+                                    file_size=st.st_size,
+                                )
+
                         if kind == stat.S_IFDIR:
                             visit.append(fp)
 
             if scmutil.istreemanifest(repo):
-                for (t, u, s) in repo.store.datafiles():
+                for entry in repo.store.datafiles():
+                    u = entry.unencoded_path
                     if u.startswith(b'meta/') and (
                         u.endswith(b'.i') or u.endswith(b'.d')
                     ):
-                        yield (t, u, s)
+                        yield entry
 
             # Return .d and .i files that do not match the shallow pattern
             match = state.match
             if match and not match.always():
-                for (t, u, s) in repo.store.datafiles():
+                for entry in repo.store.datafiles():
+                    u = entry.unencoded_path
                     f = u[5:-2]  # trim data/...  and .i/.d
                     if not state.match(f):
-                        yield (t, u, s)
+                        yield entry
 
             for x in repo.store.topfiles():
                 if state.noflatmf and x[1][:11] == b'00manifest.':