equal
deleted
inserted
replaced
852 state[transition].append(node) |
852 state[transition].append(node) |
853 ctx = repo[node] |
853 ctx = repo[node] |
854 ui.status(_('changeset %d:%s: %s\n') % (ctx, ctx, transition)) |
854 ui.status(_('changeset %d:%s: %s\n') % (ctx, ctx, transition)) |
855 hbisect.checkstate(state) |
855 hbisect.checkstate(state) |
856 # bisect |
856 # bisect |
857 nodes, changesets, bgood = hbisect.bisect(repo.changelog, state) |
857 nodes, changesets, bgood = hbisect.bisect(repo, state) |
858 # update to next check |
858 # update to next check |
859 node = nodes[0] |
859 node = nodes[0] |
860 mayupdate(repo, node, show_stats=False) |
860 mayupdate(repo, node, show_stats=False) |
861 finally: |
861 finally: |
862 state['current'] = [node] |
862 state['current'] = [node] |
865 return |
865 return |
866 |
866 |
867 hbisect.checkstate(state) |
867 hbisect.checkstate(state) |
868 |
868 |
869 # actually bisect |
869 # actually bisect |
870 nodes, changesets, good = hbisect.bisect(repo.changelog, state) |
870 nodes, changesets, good = hbisect.bisect(repo, state) |
871 if extend: |
871 if extend: |
872 if not changesets: |
872 if not changesets: |
873 extendnode = hbisect.extendrange(repo, state, nodes, good) |
873 extendnode = hbisect.extendrange(repo, state, nodes, good) |
874 if extendnode is not None: |
874 if extendnode is not None: |
875 ui.write(_("Extending search to changeset %d:%s\n") |
875 ui.write(_("Extending search to changeset %d:%s\n") |