Mercurial > public > mercurial-scm > hg-stable
diff mercurial/bundlecaches.py @ 50424:d68462736492
bundle: introduce a "v3" spec
This is a small update from "v2", we use the freshly out of experimental
changelog version "03' format (alignment with bundle version is a coincidence) and we
now bundle phases by default.
We shall use v3 as the default bundle type later, when changegroup version '03'
is a bit more established
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 08 Mar 2023 15:23:22 +0100 |
parents | 9be765b82a90 |
children | f2bcb56a1d39 |
line wrap: on
line diff
--- a/mercurial/bundlecaches.py Wed Mar 08 15:43:23 2023 +0100 +++ b/mercurial/bundlecaches.py Wed Mar 08 15:23:22 2023 +0100 @@ -60,6 +60,7 @@ _bundlespeccgversions = { b'v1': b'01', b'v2': b'02', + b'v3': b'03', b'packed1': b's1', b'bundle2': b'02', # legacy } @@ -82,6 +83,14 @@ b'tagsfnodescache': True, b'revbranchcache': True, }, + b'v3': { + b'changegroup': True, + b'cg.version': b'03', + b'obsolescence': False, + b'phases': True, + b'tagsfnodescache': True, + b'revbranchcache': True, + }, b'streamv2': { b'changegroup': False, b'cg.version': b'02',