Show More
@@ -0,0 +1,47 b'' | |||
|
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 No newline at end of file |
|
1 | NO CONTENT: new file 100644, binary diff hidden |
@@ -0,0 +1,26 b'' | |||
|
1 | % unbundle | |
|
2 | pulling from C:\dev\mercurial\hg\hg-local-stable\tests/test-no-symlinks.bundle | |
|
3 | requesting all changes | |
|
4 | adding changesets | |
|
5 | adding manifests | |
|
6 | adding file changes | |
|
7 | added 1 changesets with 4 changes to 4 files | |
|
8 | (run 'hg update' to get a working copy) | |
|
9 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
10 | a | |
|
11 | d/b | |
|
12 | % move and copy | |
|
13 | a | |
|
14 | d/b | |
|
15 | % bundle | |
|
16 | pulling from ../symlinks.bundle | |
|
17 | requesting all changes | |
|
18 | adding changesets | |
|
19 | adding manifests | |
|
20 | adding file changes | |
|
21 | added 2 changesets with 6 changes to 6 files | |
|
22 | (run 'hg update' to get a working copy) | |
|
23 | 5 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
24 | a | |
|
25 | a | |
|
26 | d/b |
General Comments 0
You need to be logged in to leave comments.
Login now