hgext/largefiles/reposetup.py
changeset 50471 521fec115dad
parent 50136 b38b53c5674e
child 50488 b4a9c8f18928
--- a/hgext/largefiles/reposetup.py	Mon May 15 08:56:08 2023 +0200
+++ b/hgext/largefiles/reposetup.py	Mon May 15 08:56:23 2023 +0200
@@ -458,7 +458,8 @@
     def checkrequireslfiles(ui, repo, **kwargs):
         with repo.lock():
             if b'largefiles' not in repo.requirements and any(
-                lfutil.shortname + b'/' in f[1] for f in repo.store.datafiles()
+                lfutil.shortname + b'/' in entry.unencoded_path
+                for entry in repo.store.datafiles()
             ):
                 repo.requirements.add(b'largefiles')
                 scmutil.writereporequirements(repo)