comparison tests/test-no-symlinks @ 5127:1a028bdaddce

Merge with crew-stable
author Patrick Mezard <pmezard@gmail.com>
date Wed, 08 Aug 2007 23:11:12 +0200
parents dcfd75502b82
children 9b5ae133bd5a
comparison
equal deleted inserted replaced
5124:06154aff2b1a 5127:1a028bdaddce
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