This is an archive of the discontinued Mercurial Phabricator instance.

rebase: make rebase not crash if p1 == p2 != nullid
ClosedPublic

Authored by spectral on Dec 13 2019, 6:57 PM.

Details

Summary

While this shouldn't happen normally, some historical bugs can have caused this
kind of commit to exist. Instead of crashing and having it be unobvious how to
recover, let's try to continue on. Without this, we get an error like
"ValueError: min() arg is an empty sequence"

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

spectral created this revision.Dec 13 2019, 6:57 PM
martinvonz accepted this revision.Dec 13 2019, 7:03 PM

I think "historical" here means "before D7549.

This revision is now accepted and ready to land.Dec 13 2019, 7:03 PM
pulkit accepted this revision.Dec 16 2019, 12:40 AM
This revision was automatically updated to reflect the committed changes.