This is an archive of the discontinued Mercurial Phabricator instance.

exchange: support defining narrow file patterns for pull
ClosedPublic

Authored by indygreg on Sep 11 2018, 8:27 PM.

Details

Summary

This commit teaches exchange.pull() about the desire to perform a
narrow file pull. We simply pass include and exclude patterns to
the function. The values are validated and stored on the pulloperation
instance.

hg.clone() has been taught to pass these arguments to exchange.pull().

If the arguments are not passed to exchange.pull(), the active narrow
patterns from the repository will automatically be used. We /could/
always use the narrow patterns from the repo. However, allowing
explicit values to be passed in allows us to perform data fetching
that doesn't necessarily align with the repo configuration. This
provides more flexibility.

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 11 2018, 8:27 PM
This revision was automatically updated to reflect the committed changes.