Show More
@@ -364,11 +364,11 b' def delayedstrip(ui, repo, nodelist, top' | |||||
364 | callback.addnodes(nodelist) |
|
364 | callback.addnodes(nodelist) | |
365 |
|
365 | |||
366 | def stripmanifest(repo, striprev, tr, files): |
|
366 | def stripmanifest(repo, striprev, tr, files): | |
367 |
revlog |
|
367 | for revlog in manifestrevlogs(repo): | |
368 | revlog.strip(striprev, tr) |
|
368 | revlog.strip(striprev, tr) | |
369 | striptrees(repo, tr, striprev, files) |
|
|||
370 |
|
369 | |||
371 | def striptrees(repo, tr, striprev, files): |
|
370 | def manifestrevlogs(repo): | |
|
371 | yield repo.manifestlog.getstorage(b'') | |||
372 | if 'treemanifest' in repo.requirements: |
|
372 | if 'treemanifest' in repo.requirements: | |
373 | # This logic is safe if treemanifest isn't enabled, but also |
|
373 | # This logic is safe if treemanifest isn't enabled, but also | |
374 | # pointless, so we skip it if treemanifest isn't enabled. |
|
374 | # pointless, so we skip it if treemanifest isn't enabled. | |
@@ -376,7 +376,7 b' def striptrees(repo, tr, striprev, files' | |||||
376 | if (unencoded.startswith('meta/') and |
|
376 | if (unencoded.startswith('meta/') and | |
377 | unencoded.endswith('00manifest.i')): |
|
377 | unencoded.endswith('00manifest.i')): | |
378 | dir = unencoded[5:-12] |
|
378 | dir = unencoded[5:-12] | |
379 |
repo.manifestlog.getstorage(dir) |
|
379 | yield repo.manifestlog.getstorage(dir) | |
380 |
|
380 | |||
381 | def rebuildfncache(ui, repo): |
|
381 | def rebuildfncache(ui, repo): | |
382 | """Rebuilds the fncache file from repo history. |
|
382 | """Rebuilds the fncache file from repo history. |
General Comments 0
You need to be logged in to leave comments.
Login now