Show More
@@ -116,6 +116,8 b' def negate(repo, subset, x):' | |||
|
116 | 116 | |
|
117 | 117 | def stringset(repo, subset, x): |
|
118 | 118 | x = repo[x].rev() |
|
119 | if x == -1 and len(subset) == len(repo): | |
|
120 | return [-1] | |
|
119 | 121 | if x in subset: |
|
120 | 122 | return [x] |
|
121 | 123 | return [] |
@@ -517,9 +519,6 b' def optimize(x, small):' | |||
|
517 | 519 | return o[0], (op, o[1]) |
|
518 | 520 | elif op == 'group': |
|
519 | 521 | return optimize(x[1], small) |
|
520 | elif op in 'rangepre rangepost dagrangepre dagrangepost': | |
|
521 | wa, ta = optimize(x[1], small) | |
|
522 | return wa + 1, (op, ta) | |
|
523 | 522 | elif op in 'range list': |
|
524 | 523 | wa, ta = optimize(x[1], small) |
|
525 | 524 | wb, tb = optimize(x[2], small) |
General Comments 0
You need to be logged in to leave comments.
Login now