tests/test-extension.t
changeset 32343 d47d7d3bd07b
parent 32342 e5fbf9687600
child 32723 b6384b3d4ebe
equal deleted inserted replaced
32342:e5fbf9687600 32343:d47d7d3bd07b
  1588   $ echo "exthelp = $abspath" >> $HGRCPATH
  1588   $ echo "exthelp = $abspath" >> $HGRCPATH
  1589   $ cd exthelp
  1589   $ cd exthelp
  1590   $ hg help bookmarks | grep GREPME
  1590   $ hg help bookmarks | grep GREPME
  1591   hg bookmarks [OPTIONS]... [NAME]... GREPME [--foo] [-x]
  1591   hg bookmarks [OPTIONS]... [NAME]... GREPME [--foo] [-x]
  1592       GREPME make sure that this is in the help!
  1592       GREPME make sure that this is in the help!
  1593 
  1593   $ cd ..
       
  1594 
       
  1595 Show deprecation warning for the use of cmdutil.command
       
  1596 
       
  1597   $ cat > nonregistrar.py <<EOF
       
  1598   > from mercurial import cmdutil
       
  1599   > cmdtable = {}
       
  1600   > command = cmdutil.command(cmdtable)
       
  1601   > @command('foo', [], norepo=True)
       
  1602   > def foo(ui):
       
  1603   >     pass
       
  1604   > EOF
       
  1605 
       
  1606   $ hg --config extensions.nonregistrar=`pwd`/nonregistrar.py version > /dev/null
       
  1607   devel-warn: cmdutil.command is deprecated, use registrar.command to register 'foo'
       
  1608   (compatibility will be dropped after Mercurial-4.6, update your code.) * (glob)