Mercurial > hg
changeset 34833:07bbb208a924
context: audit paths before clearing unknown files and dirs
Fix regression introduced in D785.
In some circumstances, context.clearunknown can be called before the path is
audited. Audit the path before deleting any conflicting files.
Differential Revision: https://phab.mercurial-scm.org/D1157
author | Mark Thomas <mbthomas@fb.com> |
---|---|
date | Tue, 17 Oct 2017 08:11:13 -0700 |
parents | d6009d1488e8 |
children | 2e8477059d4f |
files | mercurial/context.py tests/test-audit-path.t |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/context.py Tue Oct 17 08:07:43 2017 -0700 +++ b/mercurial/context.py Tue Oct 17 08:11:13 2017 -0700 @@ -1946,6 +1946,7 @@ """ wvfs = self._repo.wvfs f = self._path + wvfs.audit(f) if wvfs.isdir(f) and not wvfs.islink(f): wvfs.rmtree(f, forcibly=True) for p in reversed(list(util.finddirs(f))):