Mercurial > public > mercurial-scm > hg-stable
diff mercurial/context.py @ 43677:0b7733719d21
utils: move finddirs() to pathutil
This is a follow-up to c21aca51b392 (utils: move the `dirs` definition
in pathutil (API), 2019-11-06). finddirs() is closely related to dirs
and used by it.
Differential Revision: https://phab.mercurial-scm.org/D7388
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 14 Nov 2019 08:03:26 -0800 |
parents | 9f70512ae2cf |
children | e035a8f71d52 |
line wrap: on
line diff
--- a/mercurial/context.py Wed Nov 13 21:52:25 2019 -0500 +++ b/mercurial/context.py Thu Nov 14 08:03:26 2019 -0800 @@ -2080,7 +2080,7 @@ # warned and backed up if wvfs.isdir(f) and not wvfs.islink(f): wvfs.rmtree(f, forcibly=True) - for p in reversed(list(util.finddirs(f))): + for p in reversed(list(pathutil.finddirs(f))): if wvfs.isfileorlink(p): wvfs.unlink(p) break