compat: fix compatibility with upstream Mercurial
Mercurial changeset 3b7aabd02e11 changed some code from repo[ctx.p1().node()]
to ctx.p1()
. ctx.p1()
is using ctx._parents
. The base class’s _parents
returns instances of type changectx
instead of overlaychangectx
, leading to
a crash later. Therefore we override _parents
instead of parents()
.
The base class’s parents()
method returns self._parents
, so the return value
of parents()
is unchanged.