This is an archive of the discontinued Mercurial Phabricator instance.

tests: update divergence test for `hg fix` to actually result in divergence
ClosedPublic

Authored by martinvonz on Mar 25 2021, 6:13 PM.

Details

Summary

We have a test that checks that hg fix errors out if it might cause
divergence. However, the test simply prunes the commit it then tries
to fix, so fixing it wouldn't actually cause divergence. That works
because the implementation is simple enough that it doesn't notice the
difference. I'm about to make the implementation smarter, so let's fix
the test first.

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.Mar 25 2021, 6:13 PM
This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.