Mercurial > hg
comparison tests/test-logtoprocess.t @ 40621:175b590b1f51
py3: byte-stringify inline extension in test-logtoprocess.t
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 11 Nov 2018 12:35:38 +0900 |
parents | 106adc261492 |
children | d2c997b8001f |
comparison
equal
deleted
inserted
replaced
40620:b2e5a554bc7b | 40621:175b590b1f51 |
---|---|
12 > from mercurial import registrar | 12 > from mercurial import registrar |
13 > cmdtable = {} | 13 > cmdtable = {} |
14 > command = registrar.command(cmdtable) | 14 > command = registrar.command(cmdtable) |
15 > configtable = {} | 15 > configtable = {} |
16 > configitem = registrar.configitem(configtable) | 16 > configitem = registrar.configitem(configtable) |
17 > configitem('logtoprocess', 'foo', | 17 > configitem(b'logtoprocess', b'foo', |
18 > default=None, | 18 > default=None, |
19 > ) | 19 > ) |
20 > @command(b'foobar', []) | 20 > @command(b'foobar', []) |
21 > def foo(ui, repo): | 21 > def foo(ui, repo): |
22 > ui.log('foo', 'a message: %s\n', 'spam') | 22 > ui.log(b'foo', b'a message: %s\n', b'spam') |
23 > EOF | 23 > EOF |
24 $ cp $HGRCPATH $HGRCPATH.bak | 24 $ cp $HGRCPATH $HGRCPATH.bak |
25 $ cat >> $HGRCPATH << EOF | 25 $ cat >> $HGRCPATH << EOF |
26 > [extensions] | 26 > [extensions] |
27 > logtoprocess= | 27 > logtoprocess= |