This is an archive of the discontinued Mercurial Phabricator instance.

exchange: perform stream clone with clone bundle with --uncompressed
ClosedPublic

Authored by indygreg on Sep 28 2017, 10:25 AM.

Details

Summary

Previously, hg clone --uncompressed would always clone from the
origin server, even if a streaming clone bundle were available.

With this change, we invoke the clone bundle mechanism before the
stream clone mechanism, giving clone bundles the opportunity to
handle --uncompressed (which is mapped to pullop.streamclonepreferred).

The clone bundle filtering code now filters out entries that aren't
stream clones when a stream clone is requested. If a stream clone
clone bundle entry is present, it will be used. Otherwise, the client
will fall back to a server-based streaming clone.

.. feature::

`hg clone --uncompressed` uses clone bundles when possible

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

indygreg created this revision.Sep 28 2017, 10:25 AM
krbullock accepted this revision.Sep 30 2017, 9:56 AM
krbullock added a subscriber: krbullock.

Queued these, thanks.

This revision is now accepted and ready to land.Sep 30 2017, 9:56 AM
This revision was automatically updated to reflect the committed changes.