view tests/test-symlink-addremove @ 10836:e5aaa4543289 stable

dirstate: fix in memory dirstate entries for 1-second race Only the on-disk file was modified, we need to modify the in-memory dirstate as well.
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Mon, 05 Apr 2010 18:13:20 +0200
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