tests/test-pager-legacy.t
changeset 32337 46ba2cdda476
parent 32103 9a98023ac8db
child 32940 75be14993fda
equal deleted inserted replaced
32336:ff874d34c856 32337:46ba2cdda476
   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