equal
deleted
inserted
replaced
212 2 |
212 2 |
213 |
213 |
214 Pager should not override the exit code of other commands |
214 Pager should not override the exit code of other commands |
215 |
215 |
216 $ cat >> $TESTTMP/fortytwo.py <<'EOF' |
216 $ cat >> $TESTTMP/fortytwo.py <<'EOF' |
217 > from mercurial import cmdutil, commands |
217 > from mercurial import registrar, commands |
218 > cmdtable = {} |
218 > cmdtable = {} |
219 > command = cmdutil.command(cmdtable) |
219 > command = registrar.command(cmdtable) |
220 > @command('fortytwo', [], 'fortytwo', norepo=True) |
220 > @command('fortytwo', [], 'fortytwo', norepo=True) |
221 > def fortytwo(ui, *opts): |
221 > def fortytwo(ui, *opts): |
222 > ui.write('42\n') |
222 > ui.write('42\n') |
223 > return 42 |
223 > return 42 |
224 > EOF |
224 > EOF |