[Request] [+ ] D10802: revlogv2: make sure bundling pick a compatible bundle format
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Mon May 31 02:06:54 UTC 2021
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Before this change, revlog-v2 repository where bundled using the incompatible
"v1" format.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D10802
AFFECTED FILES
mercurial/bundlecaches.py
tests/test-revlog-v2.t
CHANGE DETAILS
diff --git a/tests/test-revlog-v2.t b/tests/test-revlog-v2.t
--- a/tests/test-revlog-v2.t
+++ b/tests/test-revlog-v2.t
@@ -69,6 +69,14 @@
.hg/store/data/foo.i:
0000: 00 00 de ad |....|
+Bundle use a compatible changegroup format
+------------------------------------------
+
+ $ hg bundle --all ../basic.hg
+ 1 changesets found
+ $ hg debugbundle --spec ../basic.hg
+ bzip2-v2
+
The expected files are generated
--------------------------------
diff --git a/mercurial/bundlecaches.py b/mercurial/bundlecaches.py
--- a/mercurial/bundlecaches.py
+++ b/mercurial/bundlecaches.py
@@ -167,6 +167,8 @@
# Generaldelta repos require v2.
if requirementsmod.GENERALDELTA_REQUIREMENT in repo.requirements:
version = b'v2'
+ elif requirementsmod.REVLOGV2_REQUIREMENT in repo.requirements:
+ version = b'v2'
# Modern compression engines require v2.
if compression not in _bundlespecv1compengines:
version = b'v2'
To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20210531/183b9ba1/attachment.html>
More information about the Mercurial-patches
mailing list