comparison mercurial/repair.py @ 43523:c21aca51b392

utils: move the `dirs` definition in pathutil (API) Before this change, the `dirs` class was accessible through the `mercurial.util` module. That module is expected to stay free of scm specific content. The `pathutil` destination has been selection by Martin von Zweigbergk. This work is part of a refactoring to unify the revlog index and the nodemap. This unification prepare the use of a persistent nodemap. Differential Revision: https://phab.mercurial-scm.org/D7311
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 06 Nov 2019 14:13:19 +0100
parents 8ff1ecfadcd1
children 29adf0a087a1
comparison
equal deleted inserted replaced
43522:ce96be208ea4 43523:c21aca51b392
22 discovery, 22 discovery,
23 error, 23 error,
24 exchange, 24 exchange,
25 obsolete, 25 obsolete,
26 obsutil, 26 obsutil,
27 pathutil,
27 phases, 28 phases,
28 pycompat, 29 pycompat,
29 util, 30 util,
30 ) 31 )
31 from .utils import stringutil 32 from .utils import stringutil
474 progress.complete() 475 progress.complete()
475 476
476 if b'treemanifest' in repo.requirements: 477 if b'treemanifest' in repo.requirements:
477 # This logic is safe if treemanifest isn't enabled, but also 478 # This logic is safe if treemanifest isn't enabled, but also
478 # pointless, so we skip it if treemanifest isn't enabled. 479 # pointless, so we skip it if treemanifest isn't enabled.
479 for dir in util.dirs(seenfiles): 480 for dir in pathutil.dirs(seenfiles):
480 i = b'meta/%s/00manifest.i' % dir 481 i = b'meta/%s/00manifest.i' % dir
481 d = b'meta/%s/00manifest.d' % dir 482 d = b'meta/%s/00manifest.d' % dir
482 483
483 if repo.store._exists(i): 484 if repo.store._exists(i):
484 newentries.add(i) 485 newentries.add(i)