[PATCH 1 of 2 STABLE] test-clonebundles.t: add test for incremental pull

Gregory Szorc gregory.szorc at gmail.com
Tue Nov 3 20:17:08 UTC 2015


# HG changeset patch
# User Gregory Szorc <gregory.szorc at gmail.com>
# Date 1446581714 28800
#      Tue Nov 03 12:15:14 2015 -0800
# Branch stable
# Node ID 7c2360b9eb1f429f205d82fd9d46e8ba092cb9a5
# Parent  58b7f3e93bbab749ab16c09df12aae5ba7880708
test-clonebundles.t: add test for incremental pull

This demonstrates issue4932.

diff --git a/tests/test-clonebundles.t b/tests/test-clonebundles.t
--- a/tests/test-clonebundles.t
+++ b/tests/test-clonebundles.t
@@ -155,8 +155,33 @@ changes. If this output changes, we coul
   adding manifests
   adding file changes
   added 1 changesets with 1 changes to 1 files
 
+Incremental pull doesn't fetch bundle
+
+  $ hg clone -r 53245c60e682 -U http://localhost:$HGPORT partial-clone
+  adding changesets
+  adding manifests
+  adding file changes
+  added 1 changesets with 1 changes to 1 files
+
+  $ cd partial-clone
+  $ hg pull
+  pulling from http://localhost:$HGPORT/
+  applying clone bundle from http://localhost:$HGPORT1/partial.hg
+  adding changesets
+  adding manifests
+  adding file changes
+  added 0 changesets with 0 changes to 1 files
+  finished applying clone bundle
+  searching for changes
+  adding changesets
+  adding manifests
+  adding file changes
+  added 1 changesets with 1 changes to 1 files
+  (run 'hg update' to get a working copy)
+  $ cd ..
+
 Bundle with full content works
 
   $ hg -R server bundle --type gzip-v2 --base null -r tip full.hg
   2 changesets found


More information about the Mercurial-devel mailing list