##// END OF EJS Templates
revset: fix O(n**2) behaviour of bisect() (issue3381)
Bryan O'Sullivan -
r16467:7f59900e stable
parent child Browse files
Show More
@@ -291,7 +291,8 b' def bisect(repo, subset, x):'
291 - ``ignored`` : csets ignored due to DAG topology
291 - ``ignored`` : csets ignored due to DAG topology
292 """
292 """
293 status = getstring(x, _("bisect requires a string")).lower()
293 status = getstring(x, _("bisect requires a string")).lower()
294 return [r for r in subset if r in hbisect.get(repo, status)]
294 state = set(hbisect.get(repo, status))
295 return [r for r in subset if r in state]
295
296
296 # Backward-compatibility
297 # Backward-compatibility
297 # - no help entry so that we do not advertise it any more
298 # - no help entry so that we do not advertise it any more
General Comments 0
You need to be logged in to leave comments. Login now