Show More
@@ -1,37 +1,39 b'' | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
|
3 | "$TESTDIR/hghave" symlink || exit 80 | |||
|
4 | ||||
3 | origdir=`pwd` |
|
5 | origdir=`pwd` | |
4 |
|
6 | |||
5 | cat >> readlink.py <<EOF |
|
7 | cat >> readlink.py <<EOF | |
6 | import os |
|
8 | import os | |
7 | import sys |
|
9 | import sys | |
8 |
|
10 | |||
9 | for f in sys.argv[1:]: |
|
11 | for f in sys.argv[1:]: | |
10 | print f, '->', os.readlink(f) |
|
12 | print f, '->', os.readlink(f) | |
11 | EOF |
|
13 | EOF | |
12 |
|
14 | |||
13 | hg init repo |
|
15 | hg init repo | |
14 | cd repo |
|
16 | cd repo | |
15 | ln -s nothing dangling |
|
17 | ln -s nothing dangling | |
16 | hg ci -qAm 'add symlink' |
|
18 | hg ci -qAm 'add symlink' | |
17 |
|
19 | |||
18 | hg archive -t files ../archive |
|
20 | hg archive -t files ../archive | |
19 | hg archive -t tar -p tar ../archive.tar |
|
21 | hg archive -t tar -p tar ../archive.tar | |
20 | hg archive -t zip -p zip ../archive.zip |
|
22 | hg archive -t zip -p zip ../archive.zip | |
21 |
|
23 | |||
22 | echo '% files' |
|
24 | echo '% files' | |
23 | cd "$origdir" |
|
25 | cd "$origdir" | |
24 | cd archive |
|
26 | cd archive | |
25 | python ../readlink.py dangling |
|
27 | python ../readlink.py dangling | |
26 |
|
28 | |||
27 | echo '% tar' |
|
29 | echo '% tar' | |
28 | cd "$origdir" |
|
30 | cd "$origdir" | |
29 | tar xf archive.tar |
|
31 | tar xf archive.tar | |
30 | cd tar |
|
32 | cd tar | |
31 | python ../readlink.py dangling |
|
33 | python ../readlink.py dangling | |
32 |
|
34 | |||
33 | echo '% zip' |
|
35 | echo '% zip' | |
34 | cd "$origdir" |
|
36 | cd "$origdir" | |
35 | unzip archive.zip > /dev/null |
|
37 | unzip archive.zip > /dev/null | |
36 | cd zip |
|
38 | cd zip | |
37 | python ../readlink.py dangling |
|
39 | python ../readlink.py dangling |
General Comments 0
You need to be logged in to leave comments.
Login now