This is an archive of the discontinued Mercurial Phabricator instance.

setdiscovery: pass heads into _updatesample()
ClosedPublic

Authored by indygreg on Aug 17 2018, 5:30 PM.

Details

Summary

In preparation for eliminating the use of dagutil. Since
_takefullsample() operates on the inverted DAG, it is easier
to have the caller pass in the relevant set instead of teaching
_updatesample() about when to invert the DAG.

We keep the logic identical for now: future commits will remove
dagutil.

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.Aug 17 2018, 5:30 PM
This revision was automatically updated to reflect the committed changes.