equal
deleted
inserted
replaced
|
1 #!/bin/sh |
|
2 |
|
3 "$TESTDIR/hghave" no-symlink || exit 80 |
|
4 |
|
5 # The following script was used to create the bundle: |
|
6 # |
|
7 # hg init symlinks |
|
8 # cd symlinks |
|
9 # echo a > a |
|
10 # mkdir d |
|
11 # echo b > d/b |
|
12 # ln -s a a.lnk |
|
13 # ln -s d/b d/b.lnk |
|
14 # hg ci -Am t |
|
15 # hg bundle --base null ../test-no-symlinks.bundle |
|
16 |
|
17 # Extract a symlink on a platform not supporting them |
|
18 echo % unbundle |
|
19 hg init t |
|
20 cd t |
|
21 hg pull "$TESTDIR/test-no-symlinks.bundle" |
|
22 hg update |
|
23 |
|
24 cat a.lnk && echo |
|
25 cat d/b.lnk && echo |
|
26 |
|
27 # Copy a symlink and move another |
|
28 echo % move and copy |
|
29 hg copy a.lnk d/a2.lnk |
|
30 hg mv d/b.lnk b2.lnk |
|
31 hg ci -Am copy |
|
32 cat d/a2.lnk && echo |
|
33 cat b2.lnk && echo |
|
34 |
|
35 # Bundle and extract again |
|
36 echo % bundle |
|
37 hg bundle --base null ../symlinks.bundle |
|
38 cd .. |
|
39 |
|
40 hg init t2 |
|
41 cd t2 |
|
42 hg pull ../symlinks.bundle |
|
43 hg update |
|
44 |
|
45 cat a.lnk && echo |
|
46 cat d/a2.lnk && echo |
|
47 cat b2.lnk && echo |