Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.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 | 4a73df6eb67d |
children | cc712ce3361f |
comparison
equal
deleted
inserted
replaced
50423:b61e5f763e01 | 50424:d68462736492 |
---|---|
1712 bundlespec.set_param(b'obsolescence', obsolescence_cfg, overwrite=False) | 1712 bundlespec.set_param(b'obsolescence', obsolescence_cfg, overwrite=False) |
1713 obs_mand_cfg = cfg(b'experimental', b'evolution.bundle-obsmarker:mandatory') | 1713 obs_mand_cfg = cfg(b'experimental', b'evolution.bundle-obsmarker:mandatory') |
1714 bundlespec.set_param( | 1714 bundlespec.set_param( |
1715 b'obsolescence-mandatory', obs_mand_cfg, overwrite=False | 1715 b'obsolescence-mandatory', obs_mand_cfg, overwrite=False |
1716 ) | 1716 ) |
1717 phases_cfg = cfg(b'experimental', b'bundle-phases') | 1717 if not bundlespec.params.get(b'phases', False): |
1718 bundlespec.set_param(b'phases', phases_cfg, overwrite=False) | 1718 phases_cfg = cfg(b'experimental', b'bundle-phases') |
1719 bundlespec.set_param(b'phases', phases_cfg, overwrite=False) | |
1719 | 1720 |
1720 bundle2.writenewbundle( | 1721 bundle2.writenewbundle( |
1721 ui, | 1722 ui, |
1722 repo, | 1723 repo, |
1723 b'bundle', | 1724 b'bundle', |