Mercurial > hg
comparison tests/test-audit-path.t @ 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 | 2a774cae3a03 |
comparison
equal
deleted
inserted
replaced
34832:d6009d1488e8 | 34833:07bbb208a924 |
---|---|
123 $ echo data > ../test/file | 123 $ echo data > ../test/file |
124 $ hg update -Cr3 | 124 $ hg update -Cr3 |
125 abort: path contains illegal component: ../test (glob) | 125 abort: path contains illegal component: ../test (glob) |
126 [255] | 126 [255] |
127 $ cat ../test/file | 127 $ cat ../test/file |
128 cat: ../test/file: No such file or directory | 128 data |
129 [1] | |
130 | 129 |
131 attack /tmp/test | 130 attack /tmp/test |
132 | 131 |
133 $ hg manifest -r4 | 132 $ hg manifest -r4 |
134 /tmp/test | 133 /tmp/test |