Mercurial > hg
comparison tests/test-bisect.t @ 36829:4eb3bf227ce7
py3: make test-bisect.t bytes-safe
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 06 Mar 2018 07:11:24 -0600 |
parents | 1644623ab096 |
children | 21eda240be07 |
comparison
equal
deleted
inserted
replaced
36828:80da79b6fbe4 | 36829:4eb3bf227ce7 |
---|---|
463 $ cat > script.py <<EOF | 463 $ cat > script.py <<EOF |
464 > #!$PYTHON | 464 > #!$PYTHON |
465 > from __future__ import absolute_import | 465 > from __future__ import absolute_import |
466 > import sys | 466 > import sys |
467 > from mercurial import hg, ui as uimod | 467 > from mercurial import hg, ui as uimod |
468 > repo = hg.repository(uimod.ui.load(), '.') | 468 > repo = hg.repository(uimod.ui.load(), b'.') |
469 > if repo['.'].rev() < 6: | 469 > if repo[b'.'].rev() < 6: |
470 > sys.exit(1) | 470 > sys.exit(1) |
471 > EOF | 471 > EOF |
472 $ chmod +x script.py | 472 $ chmod +x script.py |
473 $ hg bisect -r | 473 $ hg bisect -r |
474 $ hg up -qr tip | 474 $ hg up -qr tip |