Mercurial > hg
comparison tests/test-audit-path.t @ 48369:35f1ecd84bd0
errors: use detailed exit code in pathauditor
Differential Revision: https://phab.mercurial-scm.org/D11830
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 19 Nov 2021 16:21:00 -0800 |
parents | f90a5c211251 |
children | 55c6ebd11cb9 |
comparison
equal
deleted
inserted
replaced
48368:8c4881c07f57 | 48369:35f1ecd84bd0 |
---|---|
6 | 6 |
7 audit of .hg | 7 audit of .hg |
8 | 8 |
9 $ hg add .hg/00changelog.i | 9 $ hg add .hg/00changelog.i |
10 abort: path contains illegal component: .hg/00changelog.i | 10 abort: path contains illegal component: .hg/00changelog.i |
11 [255] | 11 [10] |
12 | 12 |
13 #if symlink | 13 #if symlink |
14 | 14 |
15 Symlinks | 15 Symlinks |
16 | 16 |
89 | 89 |
90 $ hg manifest -r0 | 90 $ hg manifest -r0 |
91 .hg/test | 91 .hg/test |
92 $ hg update -Cr0 | 92 $ hg update -Cr0 |
93 abort: path contains illegal component: .hg/test | 93 abort: path contains illegal component: .hg/test |
94 [255] | 94 [10] |
95 | 95 |
96 attack foo/.hg/test | 96 attack foo/.hg/test |
97 | 97 |
98 $ hg manifest -r1 | 98 $ hg manifest -r1 |
99 foo/.hg/test | 99 foo/.hg/test |
100 $ hg update -Cr1 | 100 $ hg update -Cr1 |
101 abort: path 'foo/.hg/test' is inside nested repo 'foo' | 101 abort: path 'foo/.hg/test' is inside nested repo 'foo' |
102 [255] | 102 [10] |
103 | 103 |
104 attack back/test where back symlinks to .. | 104 attack back/test where back symlinks to .. |
105 | 105 |
106 $ hg manifest -r2 | 106 $ hg manifest -r2 |
107 back | 107 back |
123 ../test | 123 ../test |
124 $ mkdir ../test | 124 $ mkdir ../test |
125 $ echo data > ../test/file | 125 $ echo data > ../test/file |
126 $ hg update -Cr3 | 126 $ hg update -Cr3 |
127 abort: path contains illegal component: ../test | 127 abort: path contains illegal component: ../test |
128 [255] | 128 [10] |
129 $ cat ../test/file | 129 $ cat ../test/file |
130 data | 130 data |
131 | 131 |
132 attack /tmp/test | 132 attack /tmp/test |
133 | 133 |
134 $ hg manifest -r4 | 134 $ hg manifest -r4 |
135 /tmp/test | 135 /tmp/test |
136 $ hg update -Cr4 | 136 $ hg update -Cr4 |
137 abort: path contains illegal component: /tmp/test | 137 abort: path contains illegal component: /tmp/test |
138 [255] | 138 [10] |
139 | 139 |
140 $ cd .. | 140 $ cd .. |
141 | 141 |
142 Test symlink traversal on merge: | 142 Test symlink traversal on merge: |
143 -------------------------------- | 143 -------------------------------- |