equal
deleted
inserted
replaced
741 try: |
741 try: |
742 while changesets: |
742 while changesets: |
743 # update state |
743 # update state |
744 state['current'] = [node] |
744 state['current'] = [node] |
745 hbisect.save_state(repo, state) |
745 hbisect.save_state(repo, state) |
746 status = util.system(command, |
746 status = ui.system(command, environ={'HG_NODE': hex(node)}) |
747 environ={'HG_NODE': hex(node)}, |
|
748 out=ui.fout) |
|
749 if status == 125: |
747 if status == 125: |
750 transition = "skip" |
748 transition = "skip" |
751 elif status == 0: |
749 elif status == 0: |
752 transition = "good" |
750 transition = "good" |
753 # status < 0 means process was killed |
751 # status < 0 means process was killed |
1571 fp = open(f, "w") |
1569 fp = open(f, "w") |
1572 fp.write(samplehgrc) |
1570 fp.write(samplehgrc) |
1573 fp.close() |
1571 fp.close() |
1574 |
1572 |
1575 editor = ui.geteditor() |
1573 editor = ui.geteditor() |
1576 util.system("%s \"%s\"" % (editor, f), |
1574 ui.system("%s \"%s\"" % (editor, f), |
1577 onerr=util.Abort, errprefix=_("edit failed"), |
1575 onerr=util.Abort, errprefix=_("edit failed")) |
1578 out=ui.fout) |
|
1579 return |
1576 return |
1580 |
1577 |
1581 for f in scmutil.rcpath(): |
1578 for f in scmutil.rcpath(): |
1582 ui.debug('read config from: %s\n' % f) |
1579 ui.debug('read config from: %s\n' % f) |
1583 untrusted = bool(opts.get('untrusted')) |
1580 untrusted = bool(opts.get('untrusted')) |