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

history: fix wrong removal of outgoing marks on push

Makes sure that only ancestors of the pushed revision are
removed from the outgoing list.

Changeset 4c461c75be7b

Parent 10e86fd2a5d8

by Wagner Bruna

Changes to one file · Browse files at 4c461c75be7b Showing diff from parent 10e86fd2a5d8 Diff from another changeset...

 
2461
2462
2463
2464
2465
 
 
 
 
 
 
 
 
 
 
2466
2467
2468
 
2461
2462
2463
 
 
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
@@ -2461,8 +2461,16 @@
  def callback(return_code, *args):   if return_code == 0:   if self.outgoing: - d = self.outgoing.index(node) - self.outgoing = self.outgoing[d + 1:] + ancestors = set([self.repo[node].rev()]) + while ancestors: + n = self.repo[ancestors.pop()] + try: + d = self.outgoing.index(n.node()) + except ValueError: + continue + del self.outgoing[d] + for p in n.parents(): + ancestors.add(p.rev())   self.reload_log()   text = _('Finished push to revision %s') % rev   else: