equal
deleted
inserted
replaced
242 2 |
242 2 |
243 |
243 |
244 Pager should not override the exit code of other commands |
244 Pager should not override the exit code of other commands |
245 |
245 |
246 $ cat >> $TESTTMP/fortytwo.py <<'EOF' |
246 $ cat >> $TESTTMP/fortytwo.py <<'EOF' |
247 > from mercurial import registrar, commands |
247 > from mercurial import commands, registrar |
248 > cmdtable = {} |
248 > cmdtable = {} |
249 > command = registrar.command(cmdtable) |
249 > command = registrar.command(cmdtable) |
250 > @command(b'fortytwo', [], b'fortytwo', norepo=True) |
250 > @command(b'fortytwo', [], b'fortytwo', norepo=True) |
251 > def fortytwo(ui, *opts): |
251 > def fortytwo(ui, *opts): |
252 > ui.write(b'42\n') |
252 > ui.write(b'42\n') |