tests: add test demonstrating phase loss when cloning (issue5939)

Authored by indygreg on Jul 11 2018, 8:15 PM.



The added tests demonstrate that phases exchange when using the
listkeys based phases exchange fails to preserve public phase in
a certain scenario when a merge is a phase root. Both non-bundle2
and bundle2 prior to the binary phase data part are buggy.

Diff Detail

rHG Mercurial
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
indygreg created this revision.Jul 11 2018, 8:15 PM

I don't understand phases code that well and am not sure if I'll be able to contribute a fix for the underlying issue in the next few days. If someone wants to take a shot at it, I could use the help.

CC @lothiraldan

This revision was automatically updated to reflect the committed changes.