view tests/test-symlink-addremove @ 8673:a8066f2fd1aa

run-tests: fix _checkhglib() so it's correct when using --with-hg. Since this makes the warning less likely, upgrade it to a "real" warning to stderr.
author Greg Ward <greg-hg@gerg.ca>
date Fri, 29 May 2009 22:18:16 -0400
parents 7f0dd352fb4d
children
line wrap: on
line source

#!/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