This is an archive of the discontinued Mercurial Phabricator instance.

setdiscovery: use revset for resolving DAG heads in a subset
ClosedPublic

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

Details

Summary

This was the final use of dagutil in setdiscovery!

For reasons I didn't investigate, feeding a set with nullrev
into the heads() revset resulted in a bunch of tests failing.
Filtering out nullrev from the input set fixes things.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

indygreg created this revision.Aug 17 2018, 5:31 PM
yuja added a subscriber: yuja.Aug 18 2018, 4:05 AM
For reasons I didn't investigate, feeding a set with nullrev
into the heads() revset resulted in a bunch of tests failing.
Filtering out nullrev from the input set fixes things.

That's probably because heads() internally calls parents(), but
parents() doesn't handle null in a way heads() can exclude p1 of the
root revision.

This revision was automatically updated to reflect the committed changes.