test-clone
27 lines
| 266 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 | ||||
cat a | ||||
hg verify | ||||
# Default destination | ||||
mkdir ../d | ||||
cd ../d | ||||
hg clone ../a | ||||
cd a | ||||
hg cat a | ||||