( )⚙ D10150 revlog: guarantee that p1 != null if a non-null parent exists

This is an archive of the discontinued Mercurial Phabricator instance.

revlog: guarantee that p1 != null if a non-null parent exists
ClosedPublic

Authored by joerg.sonnenberger on Mar 10 2021, 12:09 PM.

Details

Summary

This change does not affect the hashing (which already did this
transformation), but can change the log output in the rare case where
this behavior was observed in repositories. The change can simplify
iteration code where regular changesets and merges are distinct
branches.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage