Mercurial > hg
view tests/test-audit-path @ 7567:0946294d1f32
convert/gnuarch: fix switched copy source and destination
Reported by Edouard Gomez <ed.gomez@free.fr>
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Mon, 05 Jan 2009 14:34:20 +0100 |
parents | 11a4eb81fb4f |
children | e9d3a11eacad |
line wrap: on
line source
#!/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