tests/test-help.t
changeset 32337 46ba2cdda476
parent 32265 ccef71de7d41
child 32545 37863db50414
equal deleted inserted replaced
32336:ff874d34c856 32337:46ba2cdda476
   678   (did you mean one of pull, push?)
   678   (did you mean one of pull, push?)
   679   [255]
   679   [255]
   680 
   680 
   681   $ cat > helpext.py <<EOF
   681   $ cat > helpext.py <<EOF
   682   > import os
   682   > import os
   683   > from mercurial import cmdutil, commands
   683   > from mercurial import commands, registrar
   684   > 
   684   > 
   685   > cmdtable = {}
   685   > cmdtable = {}
   686   > command = cmdutil.command(cmdtable)
   686   > command = registrar.command(cmdtable)
   687   > 
   687   > 
   688   > @command('nohelp',
   688   > @command('nohelp',
   689   >     [('', 'longdesc', 3, 'x'*90),
   689   >     [('', 'longdesc', 3, 'x'*90),
   690   >     ('n', '', None, 'normal desc'),
   690   >     ('n', '', None, 'normal desc'),
   691   >     ('', 'newline', '', 'line1\nline2')],
   691   >     ('', 'newline', '', 'line1\nline2')],