# HG changeset patch # User Matt Mackall # Date 1282357427 18000 # Node ID af00e58bd383784426eb4eabe200276212bf79f8 # Parent 1fe4702fe2dfc3f3afcb43eac34692241fabf65e# Parent c6b1be675d3cd4b9c76a8e5f0641d61700431ded merge with stable diff -r 1fe4702fe2df -r af00e58bd383 mercurial/hbisect.py --- a/mercurial/hbisect.py Fri Aug 20 15:31:05 2010 -0500 +++ b/mercurial/hbisect.py Fri Aug 20 21:23:47 2010 -0500 @@ -61,6 +61,8 @@ badrev, ancestors = buildancestors(state['good'], state['bad']) bad = changelog.node(badrev) if not ancestors: # now we're confused + if len(state['bad']) == 1 and len(state['good']) == 1: + raise util.Abort(_("starting revisions are not directly related")) raise util.Abort(_("Inconsistent state, %s:%s is good and bad") % (badrev, short(bad)))