comparison tests/test-symlink-basic @ 6112:5ffa962783c4

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.
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Fri, 15 Feb 2008 10:38:37 -0200
parents 396c7010b0cd
children c24f4b3f156b
comparison
equal deleted inserted replaced
6111:213ea6eed412 6112:5ffa962783c4
1 #!/bin/sh 1 #!/bin/sh
2 2
3 "$TESTDIR/hghave" symlink || exit 80 3 "$TESTDIR/hghave" symlink || exit 80
4 4
5 cleanpath()
6 {
7 sed -e "s:/.*\(/test-symlink-basic/.*\):...\1:"
8 }
9
10 hg init a 5 hg init a
11 cd a 6 cd a
12 ln -s nothing dangling 7 ln -s nothing dangling
13 hg commit -m 'commit symlink without adding' -d '0 0' dangling 2>&1 | cleanpath 8 hg commit -m 'commit symlink without adding' dangling
14 hg add dangling 9 hg add dangling
15 hg commit -m 'add symlink' -d '0 0' 10 hg commit -m 'add symlink'
16 11
17 hg tip -v 12 hg tip -v
18 hg manifest --debug 13 hg manifest --debug
19 echo '% rev 0:' 14 echo '% rev 0:'
20 $TESTDIR/readlink.py dangling 15 $TESTDIR/readlink.py dangling