Show More
@@ -35,8 +35,9 b' def bisect(changelog, state):' | |||||
35 | # build visit array |
|
35 | # build visit array | |
36 | ancestors = [None] * (len(changelog) + 1) # an extra for [-1] |
|
36 | ancestors = [None] * (len(changelog) + 1) # an extra for [-1] | |
37 |
|
37 | |||
38 | # set nodes descended from goodrev |
|
38 | # set nodes descended from goodrevs | |
39 | ancestors[goodrev] = [] |
|
39 | for rev in goodrevs: | |
|
40 | ancestors[rev] = [] | |||
40 | for rev in xrange(goodrev + 1, len(changelog)): |
|
41 | for rev in xrange(goodrev + 1, len(changelog)): | |
41 | for prev in clparents(rev): |
|
42 | for prev in clparents(rev): | |
42 | if ancestors[prev] == []: |
|
43 | if ancestors[prev] == []: |
@@ -431,3 +431,22 b' end at merge: 17 bad, 11 good (but 9 is ' | |||||
431 | date: Thu Jan 01 00:00:09 1970 +0000 |
|
431 | date: Thu Jan 01 00:00:09 1970 +0000 | |
432 | summary: 9 |
|
432 | summary: 9 | |
433 |
|
433 | |||
|
434 | ||||
|
435 | user adds irrelevant but consistent information (here: -g 2) to bisect state | |||
|
436 | ||||
|
437 | $ hg bisect -r | |||
|
438 | $ hg bisect -b 13 | |||
|
439 | $ hg bisect -g 8 | |||
|
440 | Testing changeset 11:82ca6f06eccd (3 changesets remaining, ~1 tests) | |||
|
441 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
442 | $ hg bisect -g 2 | |||
|
443 | Testing changeset 11:82ca6f06eccd (3 changesets remaining, ~1 tests) | |||
|
444 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
445 | $ hg bisect -b | |||
|
446 | The first bad revision is: | |||
|
447 | changeset: 11:82ca6f06eccd | |||
|
448 | parent: 8:dab8161ac8fc | |||
|
449 | user: test | |||
|
450 | date: Thu Jan 01 00:00:11 1970 +0000 | |||
|
451 | summary: 11 | |||
|
452 |
General Comments 0
You need to be logged in to leave comments.
Login now