test-clone
27 lines
| 302 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 | ||||