tests/test-help.t
changeset 26238 69da16b366ad
parent 26237 1c6f7cc52da9
child 26351 8c7d8d5e1e0f
equal deleted inserted replaced
26237:1c6f7cc52da9 26238:69da16b366ad
   986   $ echo "helphook2 = `pwd`/helphook2.py" >> $HGRCPATH
   986   $ echo "helphook2 = `pwd`/helphook2.py" >> $HGRCPATH
   987   $ hg help revsets | grep helphook
   987   $ hg help revsets | grep helphook
   988       helphook1
   988       helphook1
   989       helphook2
   989       helphook2
   990 
   990 
       
   991 Test -e / -c / -k combinations
       
   992 
       
   993   $ hg help -c progress
       
   994   abort: no such help topic: progress
       
   995   (try "hg help --keyword progress")
       
   996   [255]
       
   997   $ hg help -e progress |head -1
       
   998   progress extension - show progress bars for some actions (DEPRECATED)
       
   999   $ hg help -c -k dates |egrep '^(Topics|Extensions|Commands):'
       
  1000   Commands:
       
  1001   $ hg help -e -k a |egrep '^(Topics|Extensions|Commands):'
       
  1002   Extensions:
       
  1003   $ hg help -e -c -k date |egrep '^(Topics|Extensions|Commands):'
       
  1004   Extensions:
       
  1005   Commands:
       
  1006   $ hg help -c commit > /dev/null
       
  1007   $ hg help -e -c commit > /dev/null
       
  1008   $ hg help -e commit > /dev/null
       
  1009   abort: no such help topic: commit
       
  1010   (try "hg help --keyword commit")
       
  1011   [255]
       
  1012 
   991 Test keyword search help
  1013 Test keyword search help
   992 
  1014 
   993   $ cat > prefixedname.py <<EOF
  1015   $ cat > prefixedname.py <<EOF
   994   > '''matched against word "clone"
  1016   > '''matched against word "clone"
   995   > '''
  1017   > '''