mercurial/branchmap.py
changeset 20260 586ec8fe1c3c
parent 20245 4edd179fefb8
child 20261 3fee302a48e6
equal deleted inserted replaced
20259:bb4aac9b048c 20260:586ec8fe1c3c
   266             # heads because an existing head is their descendant.
   266             # heads because an existing head is their descendant.
   267             while iterrevs:
   267             while iterrevs:
   268                 latest = iterrevs.pop()
   268                 latest = iterrevs.pop()
   269                 if latest not in bheadrevs:
   269                 if latest not in bheadrevs:
   270                     continue
   270                     continue
   271                 ancestors = set(cl.ancestors([latest],
   271                 ancestors = set(cl.ancestors([latest], bheadrevs[0]))
   272                                                          bheadrevs[0]))
       
   273                 if ancestors:
   272                 if ancestors:
   274                     bheadrevs = [b for b in bheadrevs if b not in ancestors]
   273                     bheadrevs = [b for b in bheadrevs if b not in ancestors]
   275             self[branch] = [cl.node(rev) for rev in bheadrevs]
   274             self[branch] = [cl.node(rev) for rev in bheadrevs]
   276             tiprev = max(bheadrevs)
   275             tiprev = max(bheadrevs)
   277             if tiprev > self.tiprev:
   276             if tiprev > self.tiprev: