equal
deleted
inserted
replaced
24 obsolete, |
24 obsolete, |
25 obsutil, |
25 obsutil, |
26 pathutil, |
26 pathutil, |
27 phases, |
27 phases, |
28 pycompat, |
28 pycompat, |
|
29 requirements, |
29 util, |
30 util, |
30 ) |
31 ) |
31 from .interfaces import repository |
|
32 from .utils import ( |
32 from .utils import ( |
33 hashutil, |
33 hashutil, |
34 stringutil, |
34 stringutil, |
35 ) |
35 ) |
36 |
36 |
417 revlog.strip(striprev, tr) |
417 revlog.strip(striprev, tr) |
418 |
418 |
419 |
419 |
420 def manifestrevlogs(repo): |
420 def manifestrevlogs(repo): |
421 yield repo.manifestlog.getstorage(b'') |
421 yield repo.manifestlog.getstorage(b'') |
422 if repository.TREEMANIFEST_REQUIREMENT in repo.requirements: |
422 if requirements.TREEMANIFEST_REQUIREMENT in repo.requirements: |
423 # This logic is safe if treemanifest isn't enabled, but also |
423 # This logic is safe if treemanifest isn't enabled, but also |
424 # pointless, so we skip it if treemanifest isn't enabled. |
424 # pointless, so we skip it if treemanifest isn't enabled. |
425 for unencoded, encoded, size in repo.store.datafiles(): |
425 for unencoded, encoded, size in repo.store.datafiles(): |
426 if unencoded.startswith(b'meta/') and unencoded.endswith( |
426 if unencoded.startswith(b'meta/') and unencoded.endswith( |
427 b'00manifest.i' |
427 b'00manifest.i' |
475 if repo.store._exists(d): |
475 if repo.store._exists(d): |
476 newentries.add(d) |
476 newentries.add(d) |
477 |
477 |
478 progress.complete() |
478 progress.complete() |
479 |
479 |
480 if repository.TREEMANIFEST_REQUIREMENT in repo.requirements: |
480 if requirements.TREEMANIFEST_REQUIREMENT in repo.requirements: |
481 # This logic is safe if treemanifest isn't enabled, but also |
481 # This logic is safe if treemanifest isn't enabled, but also |
482 # pointless, so we skip it if treemanifest isn't enabled. |
482 # pointless, so we skip it if treemanifest isn't enabled. |
483 for dir in pathutil.dirs(seenfiles): |
483 for dir in pathutil.dirs(seenfiles): |
484 i = b'meta/%s/00manifest.i' % dir |
484 i = b'meta/%s/00manifest.i' % dir |
485 d = b'meta/%s/00manifest.d' % dir |
485 d = b'meta/%s/00manifest.d' % dir |