tests/test-symlink-addremove
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
Wed, 23 Jul 2008 16:08:20 +0200
changeset 6835 08d9e0f974d9
parent 6651 7f0dd352fb4d
permissions -rwxr-xr-x
make mq and tags hardlink safe The code didn't check for modes like "r+" or "rb+". Many thanks to agriffis for noticing it.

#!/bin/sh

"$TESTDIR/hghave" symlink || exit 80

hg init a
cd a

echo '% directory moved and symlinked'
mkdir foo
touch foo/a
hg ci -Ama
mv foo bar
ln -s bar foo
echo '% now addremove should remove old files'
hg addremove