Mercurial > hg
comparison tests/test-bad-extension.t @ 40186:9cbc2579f5be
tests: fix up test-bad-extension.t's inline extension
Upcoming patches will be simpler, I think.
Differential Revision: https://phab.mercurial-scm.org/D5003
author | Augie Fackler <augie@google.com> |
---|---|
date | Fri, 12 Oct 2018 12:31:17 -0400 |
parents | 1ab185c78cc3 |
children | 9b3470dd9870 |
comparison
equal
deleted
inserted
replaced
40185:19fc5a986669 | 40186:9cbc2579f5be |
---|---|
65 > from mercurial import commands, extensions, registrar | 65 > from mercurial import commands, extensions, registrar |
66 > cmdtable = {} | 66 > cmdtable = {} |
67 > command = registrar.command(cmdtable) | 67 > command = registrar.command(cmdtable) |
68 > @command(b'showbadexts', norepo=True) | 68 > @command(b'showbadexts', norepo=True) |
69 > def showbadexts(ui, *pats, **opts): | 69 > def showbadexts(ui, *pats, **opts): |
70 > ui.write('BADEXTS: %s\n' % ' '.join(sorted(extensions.notloaded()))) | 70 > ui.write(b'BADEXTS: %s\n' % b' '.join(sorted(extensions.notloaded()))) |
71 > EOF | 71 > EOF |
72 $ hg --config extensions.badexts=showbadexts.py showbadexts 2>&1 | grep '^BADEXTS' | 72 $ hg --config extensions.badexts=showbadexts.py showbadexts 2>&1 | grep '^BADEXTS' |
73 BADEXTS: badext badext2 | 73 BADEXTS: badext badext2 |
74 | 74 |
75 #if no-extraextensions | 75 #if no-extraextensions |