This is an archive of the discontinued Mercurial Phabricator instance.

memctx: make `parents()` return list of one element if it’s not a merge
ClosedPublic

Authored by mjacob on Jul 11 2020, 5:12 PM.

Details

Summary

It is part of the contract of parents() that non-merges return a list of one
element. self._parents is always a list of two elements in memctx.

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.