Show More
@@ -199,10 +199,10 b' plain mode with exceptions' | |||||
199 | $ cat > plain.py <<EOF |
|
199 | $ cat > plain.py <<EOF | |
200 | > from mercurial import commands, extensions |
|
200 | > from mercurial import commands, extensions | |
201 | > def _config(orig, ui, repo, *values, **opts): |
|
201 | > def _config(orig, ui, repo, *values, **opts): | |
202 | > ui.write('plain: %r\n' % ui.plain()) |
|
202 | > ui.write(b'plain: %r\n' % ui.plain()) | |
203 | > return orig(ui, repo, *values, **opts) |
|
203 | > return orig(ui, repo, *values, **opts) | |
204 | > def uisetup(ui): |
|
204 | > def uisetup(ui): | |
205 | > extensions.wrapcommand(commands.table, 'config', _config) |
|
205 | > extensions.wrapcommand(commands.table, b'config', _config) | |
206 | > EOF |
|
206 | > EOF | |
207 | $ echo "[extensions]" >> $HGRC |
|
207 | $ echo "[extensions]" >> $HGRC | |
208 | $ echo "plain=./plain.py" >> $HGRC |
|
208 | $ echo "plain=./plain.py" >> $HGRC |
General Comments 0
You need to be logged in to leave comments.
Login now