Show More
@@ -1,47 +1,47 b'' | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | "$TESTDIR/hghave" no-symlink || exit 80 |
|
3 | "$TESTDIR/hghave" no-symlink || exit 80 | |
4 |
|
4 | |||
5 | # The following script was used to create the bundle: |
|
5 | # The following script was used to create the bundle: | |
6 | # |
|
6 | # | |
7 | # hg init symlinks |
|
7 | # hg init symlinks | |
8 | # cd symlinks |
|
8 | # cd symlinks | |
9 | # echo a > a |
|
9 | # echo a > a | |
10 | # mkdir d |
|
10 | # mkdir d | |
11 | # echo b > d/b |
|
11 | # echo b > d/b | |
12 | # ln -s a a.lnk |
|
12 | # ln -s a a.lnk | |
13 | # ln -s d/b d/b.lnk |
|
13 | # ln -s d/b d/b.lnk | |
14 | # hg ci -Am t |
|
14 | # hg ci -Am t | |
15 |
# hg bundle --base null ../test-no-symlinks. |
|
15 | # hg bundle --base null ../test-no-symlinks.hg | |
16 |
|
16 | |||
17 | # Extract a symlink on a platform not supporting them |
|
17 | # Extract a symlink on a platform not supporting them | |
18 | echo % unbundle |
|
18 | echo % unbundle | |
19 | hg init t |
|
19 | hg init t | |
20 | cd t |
|
20 | cd t | |
21 |
hg pull "$TESTDIR/test-no-symlinks. |
|
21 | hg pull "$TESTDIR/test-no-symlinks.hg" | |
22 | hg update |
|
22 | hg update | |
23 |
|
23 | |||
24 | cat a.lnk && echo |
|
24 | cat a.lnk && echo | |
25 | cat d/b.lnk && echo |
|
25 | cat d/b.lnk && echo | |
26 |
|
26 | |||
27 | # Copy a symlink and move another |
|
27 | # Copy a symlink and move another | |
28 | echo % move and copy |
|
28 | echo % move and copy | |
29 | hg copy a.lnk d/a2.lnk |
|
29 | hg copy a.lnk d/a2.lnk | |
30 | hg mv d/b.lnk b2.lnk |
|
30 | hg mv d/b.lnk b2.lnk | |
31 | hg ci -Am copy |
|
31 | hg ci -Am copy | |
32 | cat d/a2.lnk && echo |
|
32 | cat d/a2.lnk && echo | |
33 | cat b2.lnk && echo |
|
33 | cat b2.lnk && echo | |
34 |
|
34 | |||
35 | # Bundle and extract again |
|
35 | # Bundle and extract again | |
36 | echo % bundle |
|
36 | echo % bundle | |
37 |
hg bundle --base null ../symlinks. |
|
37 | hg bundle --base null ../symlinks.hg | |
38 | cd .. |
|
38 | cd .. | |
39 |
|
39 | |||
40 | hg init t2 |
|
40 | hg init t2 | |
41 | cd t2 |
|
41 | cd t2 | |
42 |
hg pull ../symlinks. |
|
42 | hg pull ../symlinks.hg | |
43 | hg update |
|
43 | hg update | |
44 |
|
44 | |||
45 | cat a.lnk && echo |
|
45 | cat a.lnk && echo | |
46 | cat d/a2.lnk && echo |
|
46 | cat d/a2.lnk && echo | |
47 | cat b2.lnk && echo No newline at end of file |
|
47 | cat b2.lnk && echo |
1 | NO CONTENT: file renamed from tests/test-no-symlinks.bundle to tests/test-no-symlinks.hg |
|
NO CONTENT: file renamed from tests/test-no-symlinks.bundle to tests/test-no-symlinks.hg |
@@ -1,26 +1,26 b'' | |||||
1 | % unbundle |
|
1 | % unbundle | |
2 |
pulling from C:\dev\mercurial\hg\hg-local-stable\tests/test-no-symlinks. |
|
2 | pulling from C:\dev\mercurial\hg\hg-local-stable\tests/test-no-symlinks.hg | |
3 | requesting all changes |
|
3 | requesting all changes | |
4 | adding changesets |
|
4 | adding changesets | |
5 | adding manifests |
|
5 | adding manifests | |
6 | adding file changes |
|
6 | adding file changes | |
7 | added 1 changesets with 4 changes to 4 files |
|
7 | added 1 changesets with 4 changes to 4 files | |
8 | (run 'hg update' to get a working copy) |
|
8 | (run 'hg update' to get a working copy) | |
9 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
9 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
10 | a |
|
10 | a | |
11 | d/b |
|
11 | d/b | |
12 | % move and copy |
|
12 | % move and copy | |
13 | a |
|
13 | a | |
14 | d/b |
|
14 | d/b | |
15 | % bundle |
|
15 | % bundle | |
16 |
pulling from ../symlinks. |
|
16 | pulling from ../symlinks.hg | |
17 | requesting all changes |
|
17 | requesting all changes | |
18 | adding changesets |
|
18 | adding changesets | |
19 | adding manifests |
|
19 | adding manifests | |
20 | adding file changes |
|
20 | adding file changes | |
21 | added 2 changesets with 6 changes to 6 files |
|
21 | added 2 changesets with 6 changes to 6 files | |
22 | (run 'hg update' to get a working copy) |
|
22 | (run 'hg update' to get a working copy) | |
23 | 5 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
23 | 5 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
24 | a |
|
24 | a | |
25 | a |
|
25 | a | |
26 | d/b |
|
26 | d/b |
General Comments 0
You need to be logged in to leave comments.
Login now