comparison tests/test-symlink-basic @ 4570:6a8e1dd18ba2

commands.commit: symlinks are supported
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Wed, 13 Jun 2007 19:15:58 -0300
parents af4f0d52f948
children 25d753efd48e
comparison
equal deleted inserted replaced
4569:eb403f295ff1 4570:6a8e1dd18ba2
1 #!/bin/sh 1 #!/bin/sh
2
3 cleanpath()
4 {
5 sed -e "s:/.*\(/test-symlink-basic/.*\):...\1:"
6 }
2 7
3 cat >> readlink.py <<EOF 8 cat >> readlink.py <<EOF
4 import os 9 import os
5 import sys 10 import sys
6 11
9 EOF 14 EOF
10 15
11 hg init a 16 hg init a
12 cd a 17 cd a
13 ln -s nothing dangling 18 ln -s nothing dangling
19 hg commit -m 'commit symlink without adding' -d '0 0' dangling 2>&1 | cleanpath
14 hg add dangling 20 hg add dangling
15 hg commit -m 'add symlink' -d '0 0' 21 hg commit -m 'add symlink' -d '0 0'
16 22
17 hg tip -v 23 hg tip -v
18 hg manifest --debug 24 hg manifest --debug