equal
deleted
inserted
replaced
460 |
460 |
461 test bisecting command |
461 test bisecting command |
462 |
462 |
463 $ cat > script.py <<EOF |
463 $ cat > script.py <<EOF |
464 > #!$PYTHON |
464 > #!$PYTHON |
|
465 > from __future__ import absolute_import |
465 > import sys |
466 > import sys |
466 > from mercurial import ui, hg |
467 > from mercurial import hg, ui as uimod |
467 > repo = hg.repository(ui.ui.load(), '.') |
468 > repo = hg.repository(uimod.ui.load(), '.') |
468 > if repo['.'].rev() < 6: |
469 > if repo['.'].rev() < 6: |
469 > sys.exit(1) |
470 > sys.exit(1) |
470 > EOF |
471 > EOF |
471 $ chmod +x script.py |
472 $ chmod +x script.py |
472 $ hg bisect -r |
473 $ hg bisect -r |