Mercurial > hg-stable
comparison tests/test-pager.t @ 38107:5a3feb2bc9dd
py3: add b'' prefixes in tests/test-pager.t
# skip-blame because just b'' prefixes
Differential Revision: https://phab.mercurial-scm.org/D3598
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 19 May 2018 18:31:15 +0530 |
parents | 7a9c905e51f9 |
children | 5abc47d4ca6b |
comparison
equal
deleted
inserted
replaced
38106:1a09886ab03a | 38107:5a3feb2bc9dd |
---|---|
258 | 258 |
259 $ cat >> $TESTTMP/fortytwo.py <<'EOF' | 259 $ cat >> $TESTTMP/fortytwo.py <<'EOF' |
260 > from mercurial import commands, registrar | 260 > from mercurial import commands, registrar |
261 > cmdtable = {} | 261 > cmdtable = {} |
262 > command = registrar.command(cmdtable) | 262 > command = registrar.command(cmdtable) |
263 > @command(b'fortytwo', [], 'fortytwo', norepo=True) | 263 > @command(b'fortytwo', [], b'fortytwo', norepo=True) |
264 > def fortytwo(ui, *opts): | 264 > def fortytwo(ui, *opts): |
265 > ui.write('42\n') | 265 > ui.write(b'42\n') |
266 > return 42 | 266 > return 42 |
267 > EOF | 267 > EOF |
268 | 268 |
269 $ cat >> $HGRCPATH <<'EOF' | 269 $ cat >> $HGRCPATH <<'EOF' |
270 > [extensions] | 270 > [extensions] |
375 | 375 |
376 During pushbuffer, pager should not start: | 376 During pushbuffer, pager should not start: |
377 $ cat > $TESTTMP/pushbufferpager.py <<EOF | 377 $ cat > $TESTTMP/pushbufferpager.py <<EOF |
378 > def uisetup(ui): | 378 > def uisetup(ui): |
379 > ui.pushbuffer() | 379 > ui.pushbuffer() |
380 > ui.pager('mycmd') | 380 > ui.pager(b'mycmd') |
381 > ui.write('content\n') | 381 > ui.write(b'content\n') |
382 > ui.write(ui.popbuffer()) | 382 > ui.write(ui.popbuffer()) |
383 > EOF | 383 > EOF |
384 | 384 |
385 $ echo append >> a | 385 $ echo append >> a |
386 $ hg --config extensions.pushbuffer=$TESTTMP/pushbufferpager.py status --color=off | 386 $ hg --config extensions.pushbuffer=$TESTTMP/pushbufferpager.py status --color=off |