mercurial/repair.py
changeset 50468 521fec115dad
parent 50399 c5e93c915ab6
child 50484 92611344aec2
equal deleted inserted replaced
50467:814f55775b21 50468:521fec115dad
   442 def manifestrevlogs(repo):
   442 def manifestrevlogs(repo):
   443     yield repo.manifestlog.getstorage(b'')
   443     yield repo.manifestlog.getstorage(b'')
   444     if scmutil.istreemanifest(repo):
   444     if scmutil.istreemanifest(repo):
   445         # This logic is safe if treemanifest isn't enabled, but also
   445         # This logic is safe if treemanifest isn't enabled, but also
   446         # pointless, so we skip it if treemanifest isn't enabled.
   446         # pointless, so we skip it if treemanifest isn't enabled.
   447         for t, unencoded, size in repo.store.datafiles():
   447         for entry in repo.store.datafiles():
       
   448             unencoded = entry.unencoded_path
       
   449             # XXX use the entry.revlog_type instead
   448             if unencoded.startswith(b'meta/') and unencoded.endswith(
   450             if unencoded.startswith(b'meta/') and unencoded.endswith(
   449                 b'00manifest.i'
   451                 b'00manifest.i'
   450             ):
   452             ):
   451                 dir = unencoded[5:-12]
   453                 dir = unencoded[5:-12]
   452                 yield repo.manifestlog.getstorage(dir)
   454                 yield repo.manifestlog.getstorage(dir)