This is an archive of the discontinued Mercurial Phabricator instance.

discovery: avoid wrong detection of multiple branch heads (issue6256)
ClosedPublic

Authored by marmoute on Mar 6 2020, 7:47 PM.

Details

Summary

This fix the code using obsolescence markers to remove "to be obsoleted" heads
during the detection of new head creation from push. The code turned out to not
use the branch information at all. This lead changeset from different branch to
be detected as new head on unrelated branch.

The code fix is actually quite simple. New tests have been added to covers
these cases.

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

marmoute created this revision.Mar 6 2020, 7:47 PM
pulkit accepted this revision.Mar 9 2020, 5:18 AM
This revision is now accepted and ready to land.Mar 9 2020, 5:18 AM