Changeset d2444b54d059…
Parent 993b19e70ecd…
by
Changes to one file · Browse files at d2444b54d059 Showing diff from parent 993b19e70ecd Diff from another changeset...
@@ -407,7 +407,10 @@
@propertycache
def _branchheads(self):
- return [self.changectx(x) for x in self.branchmap()]
+ heads = []
+ for branchname, nodes in self.branchmap().iteritems():
+ heads.extend(nodes)
+ return heads
def shell(self):
'Returns terminal shell configured for this repo'
@@ -529,7 +532,7 @@
def thgbranchhead(self):
'''True if self is a branch head'''
- return self in self._repo._branchheads
+ return self.node() in self._repo._branchheads
def changesToParent(self, whichparent):
parent = self.parents()[whichparent]
|
Loading...