tests/test-symlink-addremove
author Marti Raudsepp <marti@juffo.org>
Fri, 06 Nov 2009 13:48:17 +0200
changeset 9730 732fc0e9d411
parent 6651 7f0dd352fb4d
permissions -rwxr-xr-x
patchbomb: fix 'echo -en' bashism in test-patchbomb The echo command doesn't accept options in some shells. printf is required by the SUSv2 (Single UNIX Specification v2).

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