Page MenuHomePhabricator

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

Authored by mjacob on Sat, Jul 11, 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.