mercurial/repair.py
changeset 50496 e50d1fe7ebb4
parent 50487 92611344aec2
child 50504 862e3a13da44
equal deleted inserted replaced
50495:ed8cda1c18e1 50496:e50d1fe7ebb4
   446         # This logic is safe if treemanifest isn't enabled, but also
   446         # This logic is safe if treemanifest isn't enabled, but also
   447         # pointless, so we skip it if treemanifest isn't enabled.
   447         # pointless, so we skip it if treemanifest isn't enabled.
   448         for entry in repo.store.datafiles():
   448         for entry in repo.store.datafiles():
   449             if not entry.is_revlog:
   449             if not entry.is_revlog:
   450                 continue
   450                 continue
   451             if not entry.revlog_type == store.FILEFLAGS_MANIFESTLOG:
   451             if entry.revlog_type == store.FILEFLAGS_MANIFESTLOG:
   452                 continue
       
   453             if entry.is_revlog_main:
       
   454                 yield repo.manifestlog.getstorage(entry.target_id)
   452                 yield repo.manifestlog.getstorage(entry.target_id)
   455 
   453 
   456 
   454 
   457 def rebuildfncache(ui, repo, only_data=False):
   455 def rebuildfncache(ui, repo, only_data=False):
   458     """Rebuilds the fncache file from repo history.
   456     """Rebuilds the fncache file from repo history.