Mercurial > public > mercurial-scm > hg
comparison mercurial/cmdutil.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 | 9f70512ae2cf |
children | e01e0641f18a |
comparison
equal
deleted
inserted
replaced
43522:ce96be208ea4 | 43523:c21aca51b392 |
---|---|
2604 % uipathfn(subpath) | 2604 % uipathfn(subpath) |
2605 ) | 2605 ) |
2606 progress.complete() | 2606 progress.complete() |
2607 | 2607 |
2608 # warn about failure to delete explicit files/dirs | 2608 # warn about failure to delete explicit files/dirs |
2609 deleteddirs = util.dirs(deleted) | 2609 deleteddirs = pathutil.dirs(deleted) |
2610 files = m.files() | 2610 files = m.files() |
2611 progress = ui.makeprogress( | 2611 progress = ui.makeprogress( |
2612 _(b'deleting'), total=len(files), unit=_(b'files') | 2612 _(b'deleting'), total=len(files), unit=_(b'files') |
2613 ) | 2613 ) |
2614 for f in files: | 2614 for f in files: |