tests/test-clone.out
author mpm@selenic.com
Thu, 30 Jun 2005 23:51:25 -0800
changeset 550 96ff7dae94f7
child 642 5d6177b72fcc
permissions -rw-r--r--
[PATCH] Tests for clone command -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [PATCH] Tests for clone command From: Bryan O'Sullivan <bos@serpentine.com> This patch adds two new tests. One tests clone's correct operation, the other that clone fails when it should. This patch depends on oserror.patch. manifest hash: a0c9c4932baf29e7b33b2bd2003ddd2254ce65d3 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCxPX9ywK+sNU5EO8RAmSNAJ9esixtATdkszwLltu65dzpKf6P4gCcCqGT +Z7CTbXRTFcJvmXFlvEo0xE= =6fqz -----END PGP SIGNATURE-----

+ mkdir a
+ cd a
+ hg init
+ echo a
+ hg add a
+ hg commit -t test -u test -d '0 0'
+ hg clone . ../b
+ cd ../b
+ cat a
a
+ hg verify
checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
1 files, 1 changesets, 1 total revisions
+ hg clone -U . ../c
+ cd ../c
+ cat a
cat: a: No such file or directory
+ hg verify
checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
1 files, 1 changesets, 1 total revisions
+ mkdir ../d
+ cd ../d
+ hg clone ../a
+ cd a
+ hg cat a
a