X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/7a12b550f4a8366c8ace2f9c55706aba7c4b17f7..a2ddf506a8d76719f6e8a79e784b3f297128656e:/lib/wlrepo/mercurial_backend/revision.py?ds=sidebyside diff --git a/lib/wlrepo/mercurial_backend/revision.py b/lib/wlrepo/mercurial_backend/revision.py index 80b761f7..5bb3d0f1 100755 --- a/lib/wlrepo/mercurial_backend/revision.py +++ b/lib/wlrepo/mercurial_backend/revision.py @@ -103,9 +103,12 @@ class MercurialRevision(wlrepo.Revision): parents = self._changectx.parents() if len(parents) == 1: - return parents[0] - - return parents[0] if (parents[0].branch() == self.branch()) else parents[1] + return self._library._revision(parents[0]) + + if parents[0].branch() == self.hgbranch(): + return self._library._revision(parents[0]) + else: + return self._library._revision(parents[1]) def __eq__(self, other): return self._changectx.node() == other._changectx.node()