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: make ishead() branch aware

Only return false if one of the child changeset's is on the same branch.

If all the children of a changeset are on other branches, we will not create a
new branch head if we commit on top of it.

Refs #953

Changeset 88620d68d9a1

Parent 570730b0de38

by Steve Borho

Changes to one file · Browse files at 88620d68d9a1 Showing diff from parent 570730b0de38 Diff from another changeset...

 
658
659
660
661
 
 
 
 
 
662
663
664
 
658
659
660
 
661
662
663
664
665
666
667
668
@@ -658,7 +658,11 @@
    def get_head_info(self):   def ishead(ctx): - return len(ctx.children()) == 0 + for cctx in ctx.children(): + if cctx.branch() == ctx.branch(): + return False + else: + return True   if self.mqmode:   ctxs = self.repo['.'].parents()   else: