Show More
@@ -717,6 +717,8 b' def _pushb2ctx(pushop, bundler):' | |||||
717 | cgpart = bundler.newpart('changegroup', data=cg) |
|
717 | cgpart = bundler.newpart('changegroup', data=cg) | |
718 | if version is not None: |
|
718 | if version is not None: | |
719 | cgpart.addparam('version', version) |
|
719 | cgpart.addparam('version', version) | |
|
720 | if 'treemanifest' in pushop.repo.requirements: | |||
|
721 | cgpart.addparam('treemanifest', '1') | |||
720 | def handlereply(op): |
|
722 | def handlereply(op): | |
721 | """extract addchangegroup returns from server reply""" |
|
723 | """extract addchangegroup returns from server reply""" | |
722 | cgreplies = op.records.getreplies(cgpart.id) |
|
724 | cgreplies = op.records.getreplies(cgpart.id) |
@@ -312,9 +312,28 b' Shelving and unshelving should work' | |||||
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 |
General Comments 0
You need to be logged in to leave comments.
Login now