equal
deleted
inserted
replaced
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: |