This is an archive of the discontinued Mercurial Phabricator instance.

exchange: don't attempt phase exchange if phase-heads was in bundle
ClosedPublic

Authored by martinvonz on Aug 17 2017, 7:14 PM.

Details

Summary

The Mercurial core server doesn't yet include phase-heads parts in the
bundle, but our Google-internal server wants to do
that. Unfortunately, the usual exchange still happens even if
phase-heads part is included (including the short-circuited one for
old/publishing servers). That means that even if our server (again,
the Google-internal one, but also future Mercurial core servers)
includes a phase-heads part to indicate that some heads should be
drafts, that would still get overwritten by the phase updating that
happens after. So let's fix that by marking the phase step done if we
receive at least one phase-heads part in the bundle.

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

martinvonz created this revision.Aug 17 2017, 7:14 PM
quark accepted this revision.Aug 18 2017, 1:09 PM
quark added a subscriber: quark.

Looks good to me.

durin42 accepted this revision.Aug 23 2017, 11:52 AM
This revision is now accepted and ready to land.Aug 23 2017, 11:52 AM
This revision was automatically updated to reflect the committed changes.