mercurial/hbisect.py
changeset 7902 afddc32b2b3f
parent 7557 21233de9c053
child 8109 496ae1ea4698
equal deleted inserted replaced
7894:caef5fdf1375 7902:afddc32b2b3f
    76     # or have all other possible candidates besides 'bad' have been skipped?
    76     # or have all other possible candidates besides 'bad' have been skipped?
    77     tot = len(candidates)
    77     tot = len(candidates)
    78     unskipped = [c for c in candidates if (c not in skip) and (c != badrev)]
    78     unskipped = [c for c in candidates if (c not in skip) and (c != badrev)]
    79     if tot == 1 or not unskipped:
    79     if tot == 1 or not unskipped:
    80         return ([changelog.node(rev) for rev in candidates], 0, good)
    80         return ([changelog.node(rev) for rev in candidates], 0, good)
    81     perfect = tot / 2
    81     perfect = tot // 2
    82 
    82 
    83     # find the best node to test
    83     # find the best node to test
    84     best_rev = None
    84     best_rev = None
    85     best_len = -1
    85     best_len = -1
    86     poison = {}
    86     poison = {}