Show More
@@ -511,10 +511,11 class changectx(basectx): | |||||
511 |
|
511 | |||
512 | @propertycache |
|
512 | @propertycache | |
513 | def _parents(self): |
|
513 | def _parents(self): | |
514 | p = self._repo.changelog.parentrevs(self._rev) |
|
514 | repo = self._repo | |
515 | if p[1] == nullrev: |
|
515 | p1, p2 = repo.changelog.parentrevs(self._rev) | |
516 | p = p[:-1] |
|
516 | if p2 == nullrev: | |
517 |
return [changectx( |
|
517 | return [changectx(repo, p1)] | |
|
518 | return [changectx(repo, p1), changectx(repo, p2)] | |||
518 |
|
519 | |||
519 | def changeset(self): |
|
520 | def changeset(self): | |
520 | return self._changeset |
|
521 | return self._changeset |
General Comments 0
You need to be logged in to leave comments.
Login now