Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0, 2.0.1, and 2.0.2

stable thgrepo: only cache the list of branch head nodes (closes #147)

Changeset d2444b54d059

Parent 993b19e70ecd

by Steve Borho

Changes to one file · Browse files at d2444b54d059 Showing diff from parent 993b19e70ecd Diff from another changeset...

 
407
408
409
410
 
 
 
 
411
412
413
 
529
530
531
532
 
533
534
535
 
407
408
409
 
410
411
412
413
414
415
416
 
532
533
534
 
535
536
537
538
@@ -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]