tests/test-pager-legacy.t
changeset 40369 ef6cab7930b3
parent 39707 5abc47d4ca6b
equal deleted inserted replaced
40368:fad6068249d9 40369:ef6cab7930b3
   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')