tests/test-clone
changeset 6947 a7fcb43af82e
parent 6088 3b96cefc1b2b
child 7927 a218ba5f60df
--- a/tests/test-clone	Fri Aug 29 15:16:50 2008 +0200
+++ b/tests/test-clone	Sat Aug 30 18:47:54 2008 +0200
@@ -1,39 +1,63 @@
 #!/bin/sh
 
+echo
+echo % prepare repo a
 mkdir a
 cd a
 hg init
 echo a > a
 hg add a
 hg commit -m test -d '0 0'
+echo first line > b
+hg add b
+# create a non-inlined filelog
+python -c 'for x in range(10000): print x' >> data1
+for j in 0 1 2 3 4 5 6 7 8 9; do
+    cat data1 >> b
+    hg commit -m test -d '0 0'
+done
+echo % "list files in store/data (should show a 'b.d')"
+for i in .hg/store/data/*; do
+    echo $i
+done
 
-# Default operation
+echo
+echo % default operation
 hg clone . ../b
 cd ../b
 cat a
 hg verify
 
-# No update
+echo
+echo % no update
 hg clone -U . ../c
 cd ../c
 cat a 2>/dev/null || echo "a not present"
 hg verify
 
-# Default destination
+echo
+echo % default destination
 mkdir ../d
 cd ../d
 hg clone ../a
 cd a
 hg cat a
 
-# check that we drop the file:// from the path before
-# writing the .hgrc
+echo
+echo % "check that we drop the file:// from the path before"
+echo % "writing the .hgrc"
 cd ../..
 hg clone file://a e
 grep 'file:' e/.hg/hgrc
 
-# check that path aliases are expanded
+echo
+echo % 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,.*/,,'
 
+echo
+echo % use --pull
+hg clone --pull a g
+hg -R g verify
+
 exit 0