comparison tests/test-treemanifest.t @ 27938:cabac7dfc621 stable

exchange: set 'treemanifest' param on pushed changegroups too In 5c0fd878779c (treemanifests: set bundle2 part parameter indicating treemanifest, 2016-01-08), I didn't realize I had to set the parameter separately for getbundle and unbundle. Having the parameter there on push allows us to push to an empty repo and have the requirements updated correctly.
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 22 Jan 2016 16:31:50 -0800
parents 1289a122cf3f
children ca8d2b73155d
comparison
equal deleted inserted replaced
27937:3d3b4ac369f2 27938:cabac7dfc621
310 +++ b/dir1/a 310 +++ b/dir1/a
311 @@ -1,1 +1,2 @@ 311 @@ -1,1 +1,2 @@
312 1 312 1
313 +foo 313 +foo
314 314
315 Pushing from treemanifest repo to an empty repo makes that a treemanifest repo
316
317 $ cd ..
318 $ hg init empty-repo
319 $ cat << EOF >> empty-repo/.hg/hgrc
320 > [experimental]
321 > changegroup3=yes
322 > EOF
323 $ grep treemanifest empty-repo/.hg/requires
324 [1]
325 $ hg push -R repo -r 0 empty-repo
326 pushing to empty-repo
327 searching for changes
328 adding changesets
329 adding manifests
330 adding file changes
331 added 1 changesets with 2 changes to 2 files
332 $ grep treemanifest empty-repo/.hg/requires
333 treemanifest
334
315 Create deeper repo with tree manifests. 335 Create deeper repo with tree manifests.
316 336
317 $ cd ..
318 $ hg --config experimental.treemanifest=True init deeprepo 337 $ hg --config experimental.treemanifest=True init deeprepo
319 $ cd deeprepo 338 $ cd deeprepo
320 339
321 $ mkdir a 340 $ mkdir a
322 $ mkdir b 341 $ mkdir b