Show More
@@ -336,6 +336,15 b' def bisect(ui, repo, rev=None, extra=Non' | |||
|
336 | 336 | else: |
|
337 | 337 | ui.write(_("The first bad revision is:\n")) |
|
338 | 338 | displayer.show(repo[nodes[0]]) |
|
339 | parents = repo[nodes[0]].parents() | |
|
340 | if len(parents) > 1: | |
|
341 | side = state['bad'] if good else state['good'] | |
|
342 | num = len(set(i.node() for i in parents) & set(side)) | |
|
343 | if num == 1: | |
|
344 | common = parents[0].ancestor(parents[1]) | |
|
345 | ui.write(_('Not all ancestors of this changeset have been' | |
|
346 | ' checked.\nTo check the other ancestors, start' | |
|
347 | ' from the common ancestor, %s.\n' % common)) | |
|
339 | 348 | else: |
|
340 | 349 | # multiple possible revisions |
|
341 | 350 | if good: |
@@ -394,3 +394,35 b' test unrelated revs:' | |||
|
394 | 394 | $ hg bisect -g 14 |
|
395 | 395 | abort: starting revisions are not directly related |
|
396 | 396 | $ hg bisect --reset |
|
397 | ||
|
398 | end at merge: 17 bad, 11 good (but 9 is first bad) | |
|
399 | ||
|
400 | $ hg bisect -r | |
|
401 | $ hg bisect -b 17 | |
|
402 | $ hg bisect -g 11 | |
|
403 | Testing changeset 13:b0a32c86eb31 (5 changesets remaining, ~2 tests) | |
|
404 | 3 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
405 | $ hg bisect -g | |
|
406 | Testing changeset 15:857b178a7cf3 (3 changesets remaining, ~1 tests) | |
|
407 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
408 | $ hg bisect -b | |
|
409 | The first bad revision is: | |
|
410 | changeset: 15:857b178a7cf3 | |
|
411 | parent: 13:b0a32c86eb31 | |
|
412 | parent: 10:429fcd26f52d | |
|
413 | user: test | |
|
414 | date: Thu Jan 01 00:00:15 1970 +0000 | |
|
415 | summary: merge 10,13 | |
|
416 | ||
|
417 | Not all ancestors of this changeset have been checked. | |
|
418 | To check the other ancestors, start from the common ancestor, dab8161ac8fc. | |
|
419 | $ hg bisect -g 8 # dab8161ac8fc | |
|
420 | Testing changeset 9:3c77083deb4a (3 changesets remaining, ~1 tests) | |
|
421 | 1 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
|
422 | $ hg bisect -b | |
|
423 | The first bad revision is: | |
|
424 | changeset: 9:3c77083deb4a | |
|
425 | user: test | |
|
426 | date: Thu Jan 01 00:00:09 1970 +0000 | |
|
427 | summary: 9 | |
|
428 |
General Comments 0
You need to be logged in to leave comments.
Login now