Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

stable commit, csinfo: further branch head improvements

Added branch aware head detection to csinfo. The new formulation is easier to
read, so I back ported it to commit as well.

Changeset 2391025fcf43

Parent 90517899657b

by Steve Borho

Changes to 2 files · Browse files at 2391025fcf43 Showing diff from parent 90517899657b Diff from another changeset...

 
658
659
660
661
662
663
664
665
 
 
666
667
668
 
658
659
660
 
 
 
 
 
661
662
663
664
665
@@ -658,11 +658,8 @@
    def get_head_info(self):   def ishead(ctx): - for cctx in ctx.children(): - if cctx.branch() == ctx.branch(): - return False - else: - return True + childbranches = [cctx.branch() for cctx in ctx.children()] + return ctx.branch() not in childbranches   if self.mqmode:   ctxs = self.repo['.'].parents()   else:
 
300
301
302
303
 
 
304
305
306
 
300
301
302
 
303
304
305
306
307
@@ -300,7 +300,8 @@
  else:   return None   elif item == 'ishead': - return len(ctx.children()) == 0 + childbranches = [cctx.branch() for cctx in ctx.children()] + return ctx.branch() not in childbranches   raise UnknownItem(item)   if custom.has_key('data') and not kargs.get('usepreset', False):   try: