##// END OF EJS Templates
test-audit-path: add more tests (issue 1450)
Peter Arrenbrecht -
r7554:11a4eb81 1.1.2 default
parent child Browse files
Show More
1 NO CONTENT: new file 100644, binary diff hidden
@@ -20,4 +20,25 b' hg add b'
20 20 echo % should still fail - maybe
21 21 hg add b/b
22 22
23 echo % unbundle tampered bundle
24 hg init target
25 cd target
26 hg unbundle $TESTDIR/tampered.hg
27
28 echo % attack .hg/test
29 hg manifest -r0
30 hg update -Cr0
31
32 echo % attack foo/.hg/test
33 hg manifest -r1
34 hg update -Cr1
35
36 echo % attack back/test where back symlinks to ..
37 hg manifest -r2
38 hg update -Cr2
39
40 echo % attack ../test
41 hg manifest -r3
42 hg update -Cr3
43
23 44 exit 0
@@ -6,3 +6,22 b" abort: path 'b/b' traverses symbolic lin"
6 6 % should succeed
7 7 % should still fail - maybe
8 8 abort: path 'b/b' traverses symbolic link 'b'
9 % unbundle tampered bundle
10 adding changesets
11 adding manifests
12 adding file changes
13 added 4 changesets with 5 changes to 5 files (+3 heads)
14 (run 'hg heads' to see heads, 'hg merge' to merge)
15 % attack .hg/test
16 .hg/test
17 abort: path contains illegal component: .hg/test
18 % attack foo/.hg/test
19 foo/.hg/test
20 abort: path 'foo/.hg/test' is inside repo 'foo'
21 % attack back/test where back symlinks to ..
22 back
23 back/test
24 abort: path 'back/test' traverses symbolic link 'back'
25 % attack ../test
26 ../test
27 abort: path contains illegal component: ../test
General Comments 0
You need to be logged in to leave comments. Login now