This is an archive of the discontinued Mercurial Phabricator instance.

sparse: try reading from working copy first
ClosedPublic

Authored by quark on Nov 20 2017, 3:29 PM.
Tags
None
Subscribers

Details

Reviewers
singhsrb
Group Reviewers
Restricted Project
Commits
rFBHGX026271c5be96: sparse: try reading from working copy first
Summary

Previously sparse will resolve working file context via its parent
unconditionally if the file is outside sparsematch (introduced by D788).
That could be problematic if the file only exists in working copy.

This patch changes it to always try working copy first (fast), then fallback
to parent commit if the file is outside sparse.

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

quark created this revision.Nov 20 2017, 3:29 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptNov 20 2017, 3:29 PM
quark updated this revision to Diff 3675.Nov 20 2017, 3:29 PM
quark updated this revision to Diff 3677.Nov 20 2017, 3:33 PM
quark updated this revision to Diff 3678.Nov 20 2017, 4:04 PM
quark updated this revision to Diff 3679.
singhsrb accepted this revision.Nov 20 2017, 4:21 PM
singhsrb added a subscriber: singhsrb.

Cool!

This revision is now accepted and ready to land.Nov 20 2017, 4:21 PM
This revision was automatically updated to reflect the committed changes.