( )⚙ D12032 stream-clone: add a explicit set list requirements relevant to stream clone

This is an archive of the discontinued Mercurial Phabricator instance.

stream-clone: add a explicit set list requirements relevant to stream clone
ClosedPublic

Authored by marmoute on Jan 24 2022, 6:35 AM.

Details

Summary

This set explicitly lists all the requirements that "stream clone" will
preserve. Any other one will not be preserved.

The role of listing the relevant one was previously filled by
repo.supportedformat, but it seems clearer to use that such global and
explicit set. The repo.supportedformat attribute will be cleaned up in a later
changeset

The true meaning of repo.supportedformat vs repo._basesupported was lost
over time so, the content is currently bad. For example, dirstate-v2 is
currently considered relevant to the stream clone, or internal phase is
missing. We kept the same content in this changeset and we will fix them later.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

marmoute created this revision.Jan 24 2022, 6:35 AM
Alphare requested changes to this revision.Jan 24 2022, 9:30 AM
Alphare added a subscriber: Alphare.
Alphare added inline comments.
mercurial/requirements.py
94

In such cases? I'm not sure

This revision now requires changes to proceed.Jan 24 2022, 9:30 AM
marmoute updated this revision to Diff 31737.Jan 24 2022, 9:44 AM
Alphare accepted this revision.Jan 24 2022, 9:45 AM
This revision is now accepted and ready to land.Jan 24 2022, 9:45 AM