This is an archive of the discontinued Mercurial Phabricator instance.

tests: demonstrate broken rebase of merge with p1's successor in dest
ClosedPublic

Authored by martinvonz on Aug 2 2017, 1:10 AM.

Details

Summary

The fix in 8ede973597fd (rebase: handle successor targets (issue5198),
2016-04-11) only fixed the case where p2's successor was in the
destination, and only when the successor was exactly the destination
(i.e. not when the successor was an ancestor of it). This patch adds a
test case for when p1's successor is in the destination. It adds
another one for when the successor is an ancestor of the
destination. To do that simply, it also rewrites the test case using
drawdag.

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 2 2017, 1:10 AM
quark accepted this revision.Aug 2 2017, 4:01 PM
quark added a subscriber: quark.

Looks great! Thanks for finding and documenting these tricky cases!

There are a few places that might miss some English words. Those could probably be fixed in flight.

tests/test-rebase-obsolete.t
960

s/parent ancestor/parent being ancestor/g ?

martinvonz updated this revision to Diff 506.Aug 2 2017, 4:09 PM
martinvonz added inline comments.Aug 2 2017, 4:10 PM
tests/test-rebase-obsolete.t
960

Hmm, that didn't read very well (my version of it). I rephrased it slightly differently.

This revision was automatically updated to reflect the committed changes.