This is an archive of the discontinued Mercurial Phabricator instance.

localrepo: add repository feature when repo can be stream cloned
ClosedPublic

Authored by indygreg on Oct 3 2018, 12:51 PM.

Details

Summary

Right now, the wire protocol server assumes all repository objects can
be stream cloned (unless the stream clone feature is disabled via
config option).

But not all storage backends or repository objects may support stream
clone.

This commit defines a repository feature denoting whether stream clone
is supported. The feature is defined for revlog-based repositories,
which should currently be "all repositories."

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.