This is an archive of the discontinued Mercurial Phabricator instance.

rust-discovery: restoring add_missing cheap early return
Needs RevisionPublic

Authored by gracinet on Dec 24 2019, 8:49 AM.

Details

Reviewers
Alphare
baymax
Group Reviewers
hg-reviewers
Summary

In case the iterator of missing revisions argument turns out
to be empty, we need to refrain from computing the undecided
set. This way, we'll benefit from subsequent add_common_revisions
until there is an actually meaningful add_missing_revisions.

To do this with the typestate pattern, that means the early
return has to happen before potential transition into an
WithUndecided

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

gracinet created this revision.Dec 24 2019, 8:49 AM
Alphare accepted this revision.Jan 3 2020, 4:46 AM
baymax requested changes to this revision.Apr 22 2020, 11:53 AM

There seems to have been no activities on this Diff for the past 3 Months.

By policy, we are automatically moving it out of the need-review state.

Please, move it back to need-review without hesitation if this diff should still be discussed.

:baymax:need-review-idle:

This revision now requires changes to proceed.Apr 22 2020, 11:53 AM