test-clone
39 lines
| 582 B
| text/plain
|
TextLexer
/ tests / test-clone
Thomas Arendsen Hein
|
r834 | #!/bin/sh | ||
mpm@selenic.com
|
r550 | |||
mkdir a | ||||
cd a | ||||
hg init | ||||
echo a > a | ||||
hg add a | ||||
mpm@selenic.com
|
r749 | hg commit -m test -d '0 0' | ||
mpm@selenic.com
|
r550 | |||
# Default operation | ||||
hg clone . ../b | ||||
cd ../b | ||||
cat a | ||||
hg verify | ||||
# No update | ||||
hg clone -U . ../c | ||||
cd ../c | ||||
Peter van Dijk
|
r1926 | cat a 2>/dev/null || echo "a not present" | ||
mpm@selenic.com
|
r550 | hg verify | ||
# Default destination | ||||
mkdir ../d | ||||
cd ../d | ||||
hg clone ../a | ||||
cd a | ||||
hg cat a | ||||
Alexis S. L. Carvalho
|
r5225 | |||
# check that we drop the file:// from the path before | ||||
# writing the .hgrc | ||||
cd ../.. | ||||
hg clone file://a e | ||||
grep 'file:' e/.hg/hgrc | ||||
Alexis S. L. Carvalho
|
r6088 | # check that path aliases are expanded | ||
hg clone -q -U --config 'paths.foobar=a#0' foobar f | ||||
hg -R f showconfig paths.default | sed -e 's,.*/,,' | ||||
Alexis S. L. Carvalho
|
r5225 | exit 0 | ||