##// END OF EJS Templates
Merge with crew
Merge with crew

File last commit:

r5683:396c7010 default
r5952:2e8eeb5b merge default
Show More
test-symlink-basic
45 lines | 804 B | text/plain | TextLexer
/ tests / test-symlink-basic
Alexis S. L. Carvalho
Add some tests for symlink tracking
r4274 #!/bin/sh
Patrick Mezard
test-symlink-basic: require symlinks availability
r4882 "$TESTDIR/hghave" symlink || exit 80
Alexis S. L. Carvalho
commands.commit: symlinks are supported
r4572 cleanpath()
{
sed -e "s:/.*\(/test-symlink-basic/.*\):...\1:"
}
Alexis S. L. Carvalho
Add some tests for symlink tracking
r4274 hg init a
cd a
ln -s nothing dangling
Alexis S. L. Carvalho
commands.commit: symlinks are supported
r4572 hg commit -m 'commit symlink without adding' -d '0 0' dangling 2>&1 | cleanpath
Alexis S. L. Carvalho
Add some tests for symlink tracking
r4274 hg add dangling
hg commit -m 'add symlink' -d '0 0'
hg tip -v
hg manifest --debug
echo '% rev 0:'
Thomas Arendsen Hein
Use common readlink.py instead of own implementations per test script.
r5683 $TESTDIR/readlink.py dangling
Alexis S. L. Carvalho
Add some tests for symlink tracking
r4274
rm dangling
ln -s void dangling
hg commit -m 'change symlink'
echo '% rev 1:'
Thomas Arendsen Hein
Use common readlink.py instead of own implementations per test script.
r5683 $TESTDIR/readlink.py dangling
Alexis S. L. Carvalho
Add some tests for symlink tracking
r4274
echo '% modifying link'
rm dangling
ln -s empty dangling
Thomas Arendsen Hein
Use common readlink.py instead of own implementations per test script.
r5683 $TESTDIR/readlink.py dangling
Alexis S. L. Carvalho
Add some tests for symlink tracking
r4274
echo '% reverting to rev 0:'
hg revert -r 0 -a
Thomas Arendsen Hein
Use common readlink.py instead of own implementations per test script.
r5683 $TESTDIR/readlink.py dangling
Alexis S. L. Carvalho
Add some tests for symlink tracking
r4274
echo '% backups:'
Thomas Arendsen Hein
Use common readlink.py instead of own implementations per test script.
r5683 $TESTDIR/readlink.py *.orig
Alexis S. L. Carvalho
Add some tests for symlink tracking
r4274
rm *.orig
hg up -C
echo '% copies'
hg cp -v dangling dangling2
hg st -Cmard
Thomas Arendsen Hein
Use common readlink.py instead of own implementations per test script.
r5683 $TESTDIR/readlink.py dangling dangling2