( )⚙ D12084 stream-clone: also filter the requirement we put in the bundle 2

This is an archive of the discontinued Mercurial Phabricator instance.

stream-clone: also filter the requirement we put in the bundle 2
ClosedPublic

Authored by marmoute on Jan 24 2022, 9:51 AM.

Details

Summary

We were wrongly putting irrelevant requirements in the bundle and the receiving
side was getting confused, treating them as being missing while still putting
them in the requires file. Leading do corrupted repositories.

This changes fix stream-clone behavior regarding format when bundle-2 is
involved, so we now also test this cases.

Behavior with older version of Mercurial will be fine as they filter the
requirements they get from the bundle on their side anyway.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

marmoute created this revision.Jan 24 2022, 9:51 AM
Alphare accepted this revision.Jan 24 2022, 11:19 AM
This revision is now accepted and ready to land.Jan 24 2022, 11:19 AM
baymax updated this revision to Diff 31849.Jan 24 2022, 1:11 PM

✅ refresh by Heptapod after a successful CI run (🐙 💚)