equal
deleted
inserted
replaced
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 = {} |