[PATCH 2 of 2] tests: update test-bundle for multiple unbundle support

Giorgos Keramidas keramida at ceid.upatras.gr
Wed Apr 25 10:15:09 CDT 2007


# HG changeset patch
# User Giorgos Keramidas <keramida at ceid.upatras.gr>
# Date 1177514079 -10800
# Node ID 1db326157e2071895da86abb07d1c5a0ea71c53f
# Parent  01961367edf80514d51af1128b86384cd76cfc06
tests: update test-bundle for multiple unbundle support

diff --git a/tests/test-bundle b/tests/test-bundle
--- a/tests/test-bundle
+++ b/tests/test-bundle
@@ -62,6 +62,13 @@ hg -R bundle://../does-not-exist.hg outg
 hg -R bundle://../does-not-exist.hg outgoing ../partial2
 cd ..
 
+# test for http://www.selenic.com/mercurial/bts/issue216
+rm -r empty
+hg init empty
+hg -R test bundle --base null -r 0 ../0.hg
+hg -R test bundle --base 0    -r 1 ../1.hg
+hg -R empty unbundle -u ../0.hg ../1.hg
+
 # test for 540d1059c802
 hg init orig
 cd orig
diff --git a/tests/test-bundle.out b/tests/test-bundle.out
--- a/tests/test-bundle.out
+++ b/tests/test-bundle.out
@@ -211,6 +211,16 @@ summary:     0.3m
 summary:     0.3m
 
 abort: No such file or directory: ../does-not-exist.hg
+adding changesets
+adding manifests
+adding file changes
+added 1 changesets with 1 changes to 1 files
+1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+adding changesets
+adding manifests
+adding file changes
+added 1 changesets with 1 changes to 1 files
+1 files updated, 0 files merged, 0 files removed, 0 files unresolved
 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
 searching for changes
 comparing with ../bundle.hg


More information about the Mercurial-devel mailing list