##// END OF EJS Templates
hg revert should revert to parent, not to tip...
hg revert should revert to parent, not to tip -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hg revert should revert to parent, not to tip manifest hash: b6b622d0316f9f7ef60e500fb73844a4b0ad7b69 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCx27VywK+sNU5EO8RAnpHAKC1H3GAPC5wYlgpJG7Z7rWPl+vblQCeKVsz UCjkaDw40evLbltWoY24xQs= =dmvS -----END PGP SIGNATURE-----

File last commit:

r550:96ff7dae default
r590:38d106db default
Show More
test-clone-failure
43 lines | 474 B | text/plain | TextLexer
/ tests / test-clone-failure
mpm@selenic.com
[PATCH] Tests for clone command...
r550 #!/bin/bash
set -x
# No local source
hg clone a b
echo $?
# No remote source
hg clone http://127.0.0.1:3121/a b
echo $?
rm -rf b # work around bug with http clone
# Inaccessible source
mkdir a
chmod 000 a
hg clone a b
echo $?
# Inaccessible destination
mkdir b
cd b
hg init
hg clone . ../a
echo $?
cd ..
chmod 700 a
rm -rf a b
# Source of wrong type
mkfifo a
hg clone a b
echo $?
rm a
# Default destination, same directory
mkdir q
cd q
hg init
cd ..
hg clone q
true