Mercurial > hg
comparison tests/test-hook.t @ 34322:10e162bb9bf5
pull: use 'phase-heads' to retrieve phase information
A new bundle2 capability 'phases' has been added. If 'heads' is part of the
supported value for 'phases', the server supports reading and sending 'phase-
heads' bundle2 part.
Server is now able to process a 'phases' boolean parameter to 'getbundle'. If
'True', a 'phase-heads' bundle2 part will be included in the bundle with phase
information relevant to the whole pulled set. If this method is available the
phases listkey namespace will no longer be listed.
Beside the more efficient encoding of the data, this new method will greatly
improve the phase exchange efficiency for repositories with non-served
changesets (obsolete, secret) since we'll no longer send data about the
filtered heads.
Add a new 'devel.legacy.exchange' config item to allow fallback to the old
'listkey in bundle2' method.
Reminder: the pulled set is not just the changesets bundled by the pull. It
also contains changeset selected by the "pull specification" on the client
side (eg: everything for bare pull). One of the reason why the 'pulled set' is
important is to make sure we can move -common- nodes to public.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Sun, 24 Sep 2017 21:27:18 +0200 |
parents | 24849d53697d |
children | 26c879bbf4ee |
comparison
equal
deleted
inserted
replaced
34321:4ef472b975ff | 34322:10e162bb9bf5 |
---|---|
261 $ cd ../b | 261 $ cd ../b |
262 $ hg pull -B bar ../a | 262 $ hg pull -B bar ../a |
263 pulling from ../a | 263 pulling from ../a |
264 listkeys hook: HG_HOOKNAME=listkeys HG_HOOKTYPE=listkeys HG_NAMESPACE=bookmarks HG_VALUES={'bar': '0000000000000000000000000000000000000000', 'foo': '0000000000000000000000000000000000000000'} | 264 listkeys hook: HG_HOOKNAME=listkeys HG_HOOKTYPE=listkeys HG_NAMESPACE=bookmarks HG_VALUES={'bar': '0000000000000000000000000000000000000000', 'foo': '0000000000000000000000000000000000000000'} |
265 no changes found | 265 no changes found |
266 listkeys hook: HG_HOOKNAME=listkeys HG_HOOKTYPE=listkeys HG_NAMESPACE=phases HG_VALUES={'cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b': '1', 'publishing': 'True'} | |
267 adding remote bookmark bar | 266 adding remote bookmark bar |
268 $ cd ../a | 267 $ cd ../a |
269 | 268 |
270 test that prepushkey can prevent incoming keys | 269 test that prepushkey can prevent incoming keys |
271 | 270 |