Mercurial > hg
comparison tests/test-bisect.t @ 33945:403040b5a5bd
tests: update test-bisect to pass our module import checker
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Tue, 22 Aug 2017 14:58:39 -0400 |
parents | e5d104c35e51 |
children | 1644623ab096 |
comparison
equal
deleted
inserted
replaced
33944:74e53c21fd13 | 33945:403040b5a5bd |
---|---|
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 |