[PATCH 3 of 3] Add tests for cloning from a all-history bundle

John Mulligan phlogistonjohn at asynchrono.us
Sat Mar 15 11:34:53 CDT 2008


# HG changeset patch
# User John Mulligan <phlogistonjohn at asynchrono.us>
# Date 1205598135 14400
# Node ID 1d60454ac3bcb863982e580832395db2cc0dd15d
# Parent  c34ecd6ab6df54b86d1ed4bcb1c83fc3270d6a37
Add tests for cloning from a all-history bundle

diff --git a/tests/test-bundle b/tests/test-bundle
--- a/tests/test-bundle
+++ b/tests/test-bundle
@@ -97,6 +97,11 @@
 hg -R bundle://../does-not-exist.hg outgoing ../partial2
 cd ..
 
+echo "====== Direct clone from bundle (all-history)"
+hg clone full.hg full-clone
+hg -R full-clone heads
+rm -r full-clone
+
 # test for http://www.selenic.com/mercurial/bts/issue216
 echo "====== Unbundle incremental bundles into fresh empty in one go"
 rm -r empty
diff --git a/tests/test-bundle.out b/tests/test-bundle.out
--- a/tests/test-bundle.out
+++ b/tests/test-bundle.out
@@ -260,6 +260,25 @@
 
 ====== Outgoing -R does-not-exist.hg vs partial2 in partial
 abort: No such file or directory: ../does-not-exist.hg
+====== Direct clone from bundle (all-history)
+requesting all changes
+adding changesets
+adding manifests
+adding file changes
+added 9 changesets with 7 changes to 4 files (+1 heads)
+1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+changeset:   8:836ac62537ab
+tag:         tip
+parent:      3:ac69c658229d
+user:        test
+date:        Mon Jan 12 13:46:40 1970 +0000
+summary:     0.3m
+
+changeset:   7:80fe151401c2
+user:        test
+date:        Mon Jan 12 13:46:40 1970 +0000
+summary:     1.3m
+
 ====== Unbundle incremental bundles into fresh empty in one go
 1 changesets found
 1 changesets found


More information about the Mercurial-devel mailing list