This is an archive of the discontinued Mercurial Phabricator instance.

hg: write narrow patterns after repo creation
ClosedPublic

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

Details

Summary

Now that hg.clone() knows when a narrow clone is requested, it
makes sense to have it update the narrow patterns for the repo
soon after the repo is created, before any exchange occurs.

Previously, the narrow extension was monkeypatching an exchange
function to do this. The old code is redundant and has been
removed.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

indygreg created this revision.Sep 11 2018, 8:27 PM
yuja added a subscriber: yuja.Sep 12 2018, 8:57 AM

Looks good. Queued the series, thanks.

This revision was automatically updated to reflect the committed changes.