Show More
@@ -1,74 +1,75 b'' | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | "$TESTDIR/hghave" symlink || exit 80 |
|
3 | "$TESTDIR/hghave" symlink || exit 80 | |
4 |
|
4 | |||
5 | echo "[extensions]" >> $HGRCPATH |
|
5 | echo "[extensions]" >> $HGRCPATH | |
6 | echo "mq=" >> $HGRCPATH |
|
6 | echo "mq=" >> $HGRCPATH | |
7 |
|
7 | |||
8 | hg init |
|
8 | hg init | |
9 | hg qinit |
|
9 | hg qinit | |
10 | hg qnew base.patch |
|
10 | hg qnew base.patch | |
11 | echo aaa > a |
|
11 | echo aaa > a | |
12 | echo bbb > b |
|
12 | echo bbb > b | |
13 | echo ccc > c |
|
13 | echo ccc > c | |
14 | hg add a b c |
|
14 | hg add a b c | |
15 | hg qrefresh |
|
15 | hg qrefresh | |
16 | $TESTDIR/readlink.py a |
|
16 | $TESTDIR/readlink.py a | |
17 |
|
17 | |||
18 | echo '% test replacing a file with a symlink' |
|
18 | echo '% test replacing a file with a symlink' | |
19 | hg qnew symlink.patch |
|
19 | hg qnew symlink.patch | |
20 | rm a |
|
20 | rm a | |
21 | ln -s b a |
|
21 | ln -s b a | |
22 | hg qrefresh --git |
|
22 | hg qrefresh --git | |
23 | $TESTDIR/readlink.py a |
|
23 | $TESTDIR/readlink.py a | |
24 |
|
24 | |||
25 | hg qpop |
|
25 | hg qpop | |
26 | hg qpush |
|
26 | hg qpush | |
27 | $TESTDIR/readlink.py a |
|
27 | $TESTDIR/readlink.py a | |
28 |
|
28 | |||
29 | echo '% test updating a symlink' |
|
29 | echo '% test updating a symlink' | |
30 | rm a |
|
30 | rm a | |
31 | ln -s c a |
|
31 | ln -s c a | |
32 | hg qnew --git -f updatelink |
|
32 | hg qnew --git -f updatelink | |
33 | $TESTDIR/readlink.py a |
|
33 | $TESTDIR/readlink.py a | |
34 | hg qpop |
|
34 | hg qpop | |
35 | hg qpush --debug |
|
35 | hg qpush --debug | |
36 | $TESTDIR/readlink.py a |
|
36 | $TESTDIR/readlink.py a | |
37 | hg st |
|
37 | hg st | |
38 |
|
38 | |||
39 | echo '% test replacing a symlink with a file' |
|
39 | echo '% test replacing a symlink with a file' | |
40 | ln -s c s |
|
40 | ln -s c s | |
41 | hg add s |
|
41 | hg add s | |
42 | hg qnew --git -f addlink |
|
42 | hg qnew --git -f addlink | |
43 | rm s |
|
43 | rm s | |
44 | echo sss > s |
|
44 | echo sss > s | |
45 | hg qnew --git -f replacelinkwithfile |
|
45 | hg qnew --git -f replacelinkwithfile | |
46 | hg qpop |
|
46 | hg qpop | |
47 | hg qpush |
|
47 | hg qpush | |
48 | cat s |
|
48 | cat s | |
49 | hg st |
|
49 | hg st | |
50 |
|
50 | |||
51 | echo '% test symlink removal' |
|
51 | echo '% test symlink removal' | |
52 | hg qnew removesl.patch |
|
52 | hg qnew removesl.patch | |
53 | hg rm a |
|
53 | hg rm a | |
54 | hg qrefresh --git |
|
54 | hg qrefresh --git | |
55 | hg qpop |
|
55 | hg qpop | |
56 | hg qpush |
|
56 | hg qpush | |
57 | hg st -c |
|
57 | hg st -c | |
58 |
|
58 | |||
59 | echo '% replace broken symlink with another broken symlink' |
|
59 | echo '% replace broken symlink with another broken symlink' | |
60 | ln -s linka linka |
|
60 | ln -s linka linka | |
61 | hg add linka |
|
61 | hg add linka | |
62 | hg qnew link |
|
62 | hg qnew link | |
63 | hg mv linka linkb |
|
63 | hg mv linka linkb | |
|
64 | rm linkb | |||
64 | ln -sf linkb linkb |
|
65 | ln -sf linkb linkb | |
65 | hg qnew movelink |
|
66 | hg qnew movelink | |
66 | hg qpop |
|
67 | hg qpop | |
67 | hg qpush |
|
68 | hg qpush | |
68 | $TESTDIR/readlink.py linkb |
|
69 | $TESTDIR/readlink.py linkb | |
69 | echo '% check patch does not overwrite untracked symlinks' |
|
70 | echo '% check patch does not overwrite untracked symlinks' | |
70 | hg qpop |
|
71 | hg qpop | |
71 | ln -s linkbb linkb |
|
72 | ln -s linkbb linkb | |
72 | hg qpush |
|
73 | hg qpush | |
73 |
|
74 | |||
74 | true No newline at end of file |
|
75 | true |
General Comments 0
You need to be logged in to leave comments.
Login now