Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/obsutil.py @ 33960:54c21114e41d
obsolete: fix old typo
Clean an old typo in successorssets.
Differential Revision: https://phab.mercurial-scm.org/D531
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Mon, 03 Jul 2017 03:56:53 +0200 |
parents | c0bbaefc2c5a |
children | 3d0f8918351b |
comparison
equal
deleted
inserted
replaced
33959:c0bbaefc2c5a | 33960:54c21114e41d |
---|---|
560 markss = productresult | 560 markss = productresult |
561 succssets.extend(markss) | 561 succssets.extend(markss) |
562 # remove duplicated and subset | 562 # remove duplicated and subset |
563 seen = [] | 563 seen = [] |
564 final = [] | 564 final = [] |
565 candidate = sorted((s for s in succssets if s), | 565 candidates = sorted((s for s in succssets if s), |
566 key=len, reverse=True) | 566 key=len, reverse=True) |
567 for cand in candidate: | 567 for cand in candidates: |
568 for seensuccs in seen: | 568 for seensuccs in seen: |
569 if cand.canmerge(seensuccs): | 569 if cand.canmerge(seensuccs): |
570 seensuccs.markers.update(cand.markers) | 570 seensuccs.markers.update(cand.markers) |
571 break | 571 break |
572 else: | 572 else: |