##// END OF EJS Templates
cmdutil.commit: use relative paths in the error messages...
cmdutil.commit: use relative paths in the error messages This is more consistent with other error messages and requires less makeup in test-commit and test-symlink-basic.

File last commit:

r6112:5ffa9627 default
r6112:5ffa9627 default
Show More
test-symlink-basic
40 lines | 700 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
Add some tests for symlink tracking
r4274 hg init a
cd a
ln -s nothing dangling
Alexis S. L. Carvalho
cmdutil.commit: use relative paths in the error messages...
r6112 hg commit -m 'commit symlink without adding' dangling
Alexis S. L. Carvalho
Add some tests for symlink tracking
r4274 hg add dangling
Alexis S. L. Carvalho
cmdutil.commit: use relative paths in the error messages...
r6112 hg commit -m 'add symlink'
Alexis S. L. Carvalho
Add some tests for symlink tracking
r4274
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