mercurial/hbisect.py
changeset 36828 80da79b6fbe4
parent 35130 8287df8b7be5
child 36830 71f189941791
equal deleted inserted replaced
36827:12492794bf8c 36828:80da79b6fbe4
    53     bad = changelog.node(badrev)
    53     bad = changelog.node(badrev)
    54     if not ancestors: # now we're confused
    54     if not ancestors: # now we're confused
    55         if (len(state['bad']) == 1 and len(state['good']) == 1 and
    55         if (len(state['bad']) == 1 and len(state['good']) == 1 and
    56             state['bad'] != state['good']):
    56             state['bad'] != state['good']):
    57             raise error.Abort(_("starting revisions are not directly related"))
    57             raise error.Abort(_("starting revisions are not directly related"))
    58         raise error.Abort(_("inconsistent state, %s:%s is good and bad")
    58         raise error.Abort(_("inconsistent state, %d:%s is good and bad")
    59                          % (badrev, short(bad)))
    59                          % (badrev, short(bad)))
    60 
    60 
    61     # build children dict
    61     # build children dict
    62     children = {}
    62     children = {}
    63     visit = collections.deque([badrev])
    63     visit = collections.deque([badrev])