This is an archive of the discontinued Mercurial Phabricator instance.

exchange: support declaring pull depth
ClosedPublic

Authored by indygreg on Oct 17 2018, 9:17 AM.

Details

Summary

Upcoming commits will teach exchangev2 how to perform a shallow
clone. This commit teaches hg.clone(), exchange.pull(), and
exchange.pulloperation to recognize a request for a shallow clone
by having the caller specify a numeric depth of the maximum number of
ancestor changesets to fetch.

There are certainly other ways we could control shallow-ness. But this
one is simple to implement and is also how the narrow extension
controls things. So it seems to make sense to start here.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

indygreg created this revision.Oct 17 2018, 9:17 AM
This revision was automatically updated to reflect the committed changes.