This is an archive of the discontinued Mercurial Phabricator instance.

rust-discovery: moved some methods to the wrapper enum
Needs RevisionPublic

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

Details

Reviewers
Alphare
baymax
Group Reviewers
hg-reviewers
Summary

In the primary switch to the typestate pattern, these
methods have been kept on the WithUndecided struct, that
had most of the original methods of PartialDiscovery, so
that the change would be readable.

But we feel it makes more sense to have them on the wrapper
enum.

common_heads would also be a candidate for a last stage method,
we wouldn't need that lenghty warning docstring that it's not
relevant if is-complete is true

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:50 AM
Alphare accepted this revision.Jan 3 2020, 4:54 AM
baymax requested changes to this revision.Apr 22 2020, 11:52 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:52 AM