##// END OF EJS Templates
convert/gnuarch: follow continuation-of revisions...
convert/gnuarch: follow continuation-of revisions Built on top of previous patches: - continuation-of parsing - registered archives retrieval - use of fully qualified revisions This allows the converter scanning for more source revisions following the tree versions 'leaked' through the continuation-of informations. Coupled with the registered archives retrieval, this makes possible to decide to follow such a hint or stop scanning for more revisions. This also implies some changes in the retrieval of some base-0 revisions when they're continuation-of other revisions, in that case a 'replay' will work where a simple 'get' fails because the dir exists already. I found the code dealing with 'replay' quite good as it has already a fallback to 'get' in the error path.

File last commit:

r7554:11a4eb81 1.1.2 default
r7585:075b7ef0 default
Show More
test-audit-path
44 lines | 577 B | text/plain | TextLexer
#!/bin/sh
hg init
echo % should fail
hg add .hg/00changelog.i
mkdir a
echo a > a/a
hg ci -Ama
ln -s a b
echo b > a/b
echo % should fail
hg add b/b
echo % should succeed
hg add b
echo % should still fail - maybe
hg add b/b
echo % unbundle tampered bundle
hg init target
cd target
hg unbundle $TESTDIR/tampered.hg
echo % attack .hg/test
hg manifest -r0
hg update -Cr0
echo % attack foo/.hg/test
hg manifest -r1
hg update -Cr1
echo % attack back/test where back symlinks to ..
hg manifest -r2
hg update -Cr2
echo % attack ../test
hg manifest -r3
hg update -Cr3
exit 0