##// END OF EJS Templates
store: use StoreEntry API instead of parsing filename when listing manifestlog...
marmoute -
r51380:92611344 default
parent child Browse files
Show More
@@ -24,6 +24,7 b' from . import ('
24 phases,
24 phases,
25 requirements,
25 requirements,
26 scmutil,
26 scmutil,
27 store,
27 transaction,
28 transaction,
28 util,
29 util,
29 )
30 )
@@ -445,13 +446,12 b' def manifestrevlogs(repo):'
445 # This logic is safe if treemanifest isn't enabled, but also
446 # This logic is safe if treemanifest isn't enabled, but also
446 # pointless, so we skip it if treemanifest isn't enabled.
447 # pointless, so we skip it if treemanifest isn't enabled.
447 for entry in repo.store.datafiles():
448 for entry in repo.store.datafiles():
448 unencoded = entry.unencoded_path
449 if not entry.is_revlog:
449 # XXX use the entry.revlog_type instead
450 continue
450 if unencoded.startswith(b'meta/') and unencoded.endswith(
451 if not entry.revlog_type == store.FILEFLAGS_MANIFESTLOG:
451 b'00manifest.i'
452 continue
452 ):
453 if entry.is_revlog_main:
453 dir = unencoded[5:-12]
454 yield repo.manifestlog.getstorage(entry.target_id)
454 yield repo.manifestlog.getstorage(dir)
455
455
456
456
457 def rebuildfncache(ui, repo, only_data=False):
457 def rebuildfncache(ui, repo, only_data=False):
General Comments 0
You need to be logged in to leave comments. Login now