# HG changeset patch # User Yuya Nishihara # Date 1458511769 25200 # Node ID 6aa17f86d9f025d026289fca20dc28a2128888b3 # Parent 3aa50c9d89a08ec2b051930c3de5f30a0793259a test-hgrc: do not print ui.plain() flag at uisetup() This makes the test pass with chg. Since uisetup() is run per process, "hg showconfig" does not always call uisetup(). diff -r 3aa50c9d89a0 -r 6aa17f86d9f0 tests/test-hgrc.t --- a/tests/test-hgrc.t Sun Mar 20 12:25:46 2016 -0700 +++ b/tests/test-hgrc.t Sun Mar 20 15:09:29 2016 -0700 @@ -184,8 +184,12 @@ plain mode with exceptions $ cat > plain.py < from mercurial import commands, extensions + > def _config(orig, ui, repo, *values, **opts): + > ui.write('plain: %r\n' % ui.plain()) + > return orig(ui, repo, *values, **opts) > def uisetup(ui): - > ui.write('plain: %r\n' % ui.plain()) + > extensions.wrapcommand(commands.table, 'config', _config) > EOF $ echo "[extensions]" >> $HGRC $ echo "plain=./plain.py" >> $HGRC