changeset 26854:cb4b0ec54990 stable

test-clonebundles.t: add test for incremental pull This demonstrates issue4932.
author Gregory Szorc <gregory.szorc@gmail.com>
date Tue, 03 Nov 2015 12:15:14 -0800
parents cf798a7f2694
children 9350f00a7b23
files tests/test-clonebundles.t
diffstat 1 files changed, 25 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-clonebundles.t	Tue Nov 03 22:44:57 2015 +0900
+++ b/tests/test-clonebundles.t	Tue Nov 03 12:15:14 2015 -0800
@@ -156,6 +156,31 @@
   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