##// END OF EJS Templates
bisect: avoid confusing use of variables with same names in nested local scopes
Mads Kiilerich -
r20052:79d3b6a4 default
parent child Browse files
Show More
@@ -701,7 +701,7 b' def bisect(ui, repo, rev=None, extra=Non'
701 ui.status(_('changeset %d:%s: %s\n') % (ctx, ctx, transition))
701 ui.status(_('changeset %d:%s: %s\n') % (ctx, ctx, transition))
702 check_state(state, interactive=False)
702 check_state(state, interactive=False)
703 # bisect
703 # bisect
704 nodes, changesets, good = hbisect.bisect(repo.changelog, state)
704 nodes, changesets, bgood = hbisect.bisect(repo.changelog, state)
705 # update to next check
705 # update to next check
706 node = nodes[0]
706 node = nodes[0]
707 if not noupdate:
707 if not noupdate:
@@ -710,7 +710,7 b' def bisect(ui, repo, rev=None, extra=Non'
710 finally:
710 finally:
711 state['current'] = [node]
711 state['current'] = [node]
712 hbisect.save_state(repo, state)
712 hbisect.save_state(repo, state)
713 print_result(nodes, good)
713 print_result(nodes, bgood)
714 return
714 return
715
715
716 # update state
716 # update state
General Comments 0
You need to be logged in to leave comments. Login now