author | Thomas Arendsen Hein <thomas@intevation.de> |
Tue, 19 Aug 2008 18:17:11 +0200 | |
changeset 6908 | b77c25c2d6c0 |
parent 6088 | 3b96cefc1b2b |
child 6947 | a7fcb43af82e |
permissions | -rwxr-xr-x |
834
78a9f95766dc
Use sh instead of bash in tests.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
814
diff
changeset
|
1 |
#!/bin/sh |
550 | 2 |
|
3 |
mkdir a |
|
4 |
cd a |
|
5 |
hg init |
|
6 |
echo a > a |
|
7 |
hg add a |
|
749
7e4843b7efd2
Update tests to use commit -m and default -u
mpm@selenic.com
parents:
550
diff
changeset
|
8 |
hg commit -m test -d '0 0' |
550 | 9 |
|
10 |
# Default operation |
|
11 |
hg clone . ../b |
|
12 |
cd ../b |
|
13 |
cat a |
|
14 |
hg verify |
|
15 |
||
16 |
# No update |
|
17 |
hg clone -U . ../c |
|
18 |
cd ../c |
|
1926
ba198d17eea9
changes by John Levon to standardize some erroroutput
Peter van Dijk <peter@dataloss.nl>
parents:
839
diff
changeset
|
19 |
cat a 2>/dev/null || echo "a not present" |
550 | 20 |
hg verify |
21 |
||
22 |
# Default destination |
|
23 |
mkdir ../d |
|
24 |
cd ../d |
|
25 |
hg clone ../a |
|
26 |
cd a |
|
27 |
hg cat a |
|
5225
76c4cadb49fc
clone: remove "file://" before making the path absolute
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
1926
diff
changeset
|
28 |
|
76c4cadb49fc
clone: remove "file://" before making the path absolute
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
1926
diff
changeset
|
29 |
# check that we drop the file:// from the path before |
76c4cadb49fc
clone: remove "file://" before making the path absolute
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
1926
diff
changeset
|
30 |
# writing the .hgrc |
76c4cadb49fc
clone: remove "file://" before making the path absolute
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
1926
diff
changeset
|
31 |
cd ../.. |
76c4cadb49fc
clone: remove "file://" before making the path absolute
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
1926
diff
changeset
|
32 |
hg clone file://a e |
76c4cadb49fc
clone: remove "file://" before making the path absolute
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
1926
diff
changeset
|
33 |
grep 'file:' e/.hg/hgrc |
76c4cadb49fc
clone: remove "file://" before making the path absolute
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
1926
diff
changeset
|
34 |
|
6088
3b96cefc1b2b
clone: expand the path before saving it in .hg/hgrc
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
5225
diff
changeset
|
35 |
# check that path aliases are expanded |
3b96cefc1b2b
clone: expand the path before saving it in .hg/hgrc
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
5225
diff
changeset
|
36 |
hg clone -q -U --config 'paths.foobar=a#0' foobar f |
3b96cefc1b2b
clone: expand the path before saving it in .hg/hgrc
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
5225
diff
changeset
|
37 |
hg -R f showconfig paths.default | sed -e 's,.*/,,' |
3b96cefc1b2b
clone: expand the path before saving it in .hg/hgrc
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
5225
diff
changeset
|
38 |
|
5225
76c4cadb49fc
clone: remove "file://" before making the path absolute
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
1926
diff
changeset
|
39 |
exit 0 |