Mercurial > hg
comparison tests/test-help.t @ 46261:c9b2a4d69e66
errors: raise InputError when non-existent help section requested
Differential Revision: https://phab.mercurial-scm.org/D9776
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 13 Jan 2021 22:37:21 -0800 |
parents | b986e3342827 |
children | 9c9e0b4b2ca7 |
comparison
equal
deleted
inserted
replaced
46260:abba2d365373 | 46261:c9b2a4d69e66 |
---|---|
756 show changed files in the working directory | 756 show changed files in the working directory |
757 | 757 |
758 $ hg help foo | 758 $ hg help foo |
759 abort: no such help topic: foo | 759 abort: no such help topic: foo |
760 (try 'hg help --keyword foo') | 760 (try 'hg help --keyword foo') |
761 [255] | 761 [10] |
762 | 762 |
763 $ hg skjdfks | 763 $ hg skjdfks |
764 hg: unknown command 'skjdfks' | 764 hg: unknown command 'skjdfks' |
765 (use 'hg help' for a list of commands) | 765 (use 'hg help' for a list of commands) |
766 [255] | 766 [255] |
1343 non-existent subtopics print an error | 1343 non-existent subtopics print an error |
1344 | 1344 |
1345 $ hg help internals.foo | 1345 $ hg help internals.foo |
1346 abort: no such help topic: internals.foo | 1346 abort: no such help topic: internals.foo |
1347 (try 'hg help --keyword foo') | 1347 (try 'hg help --keyword foo') |
1348 [255] | 1348 [10] |
1349 | 1349 |
1350 test advanced, deprecated and experimental options are hidden in command help | 1350 test advanced, deprecated and experimental options are hidden in command help |
1351 $ hg help debugoptADV | 1351 $ hg help debugoptADV |
1352 hg debugoptADV | 1352 hg debugoptADV |
1353 | 1353 |
1477 it has to be specified manually or in a different hgrc file) | 1477 it has to be specified manually or in a different hgrc file) |
1478 | 1478 |
1479 | 1479 |
1480 $ hg help config.annotate.git | 1480 $ hg help config.annotate.git |
1481 abort: help section not found: config.annotate.git | 1481 abort: help section not found: config.annotate.git |
1482 [255] | 1482 [10] |
1483 | 1483 |
1484 $ hg help config.update.check | 1484 $ hg help config.update.check |
1485 "commands.update.check" | 1485 "commands.update.check" |
1486 Determines what level of checking 'hg update' will perform before | 1486 Determines what level of checking 'hg update' will perform before |
1487 moving to a destination revision. Valid values are "abort", "none", | 1487 moving to a destination revision. Valid values are "abort", "none", |
1507 changes, if any are present. (default: "linear") | 1507 changes, if any are present. (default: "linear") |
1508 | 1508 |
1509 | 1509 |
1510 $ hg help config.ommands.update.check | 1510 $ hg help config.ommands.update.check |
1511 abort: help section not found: config.ommands.update.check | 1511 abort: help section not found: config.ommands.update.check |
1512 [255] | 1512 [10] |
1513 | 1513 |
1514 Unrelated trailing paragraphs shouldn't be included | 1514 Unrelated trailing paragraphs shouldn't be included |
1515 | 1515 |
1516 $ hg help config.extramsg | grep '^$' | 1516 $ hg help config.extramsg | grep '^$' |
1517 | 1517 |
1653 Extensions: | 1653 Extensions: |
1654 Extension Commands: | 1654 Extension Commands: |
1655 $ hg help -c schemes | 1655 $ hg help -c schemes |
1656 abort: no such help topic: schemes | 1656 abort: no such help topic: schemes |
1657 (try 'hg help --keyword schemes') | 1657 (try 'hg help --keyword schemes') |
1658 [255] | 1658 [10] |
1659 $ hg help -e schemes |head -1 | 1659 $ hg help -e schemes |head -1 |
1660 schemes extension - extend schemes with shortcuts to repository swarms | 1660 schemes extension - extend schemes with shortcuts to repository swarms |
1661 $ hg help -c -k dates |egrep '^(Topics|Extensions|Commands):' | 1661 $ hg help -c -k dates |egrep '^(Topics|Extensions|Commands):' |
1662 Commands: | 1662 Commands: |
1663 $ hg help -e -k a |egrep '^(Topics|Extensions|Commands):' | 1663 $ hg help -e -k a |egrep '^(Topics|Extensions|Commands):' |
1668 $ hg help -c commit > /dev/null | 1668 $ hg help -c commit > /dev/null |
1669 $ hg help -e -c commit > /dev/null | 1669 $ hg help -e -c commit > /dev/null |
1670 $ hg help -e commit | 1670 $ hg help -e commit |
1671 abort: no such help topic: commit | 1671 abort: no such help topic: commit |
1672 (try 'hg help --keyword commit') | 1672 (try 'hg help --keyword commit') |
1673 [255] | 1673 [10] |
1674 | 1674 |
1675 Test keyword search help | 1675 Test keyword search help |
1676 | 1676 |
1677 $ cat > prefixedname.py <<EOF | 1677 $ cat > prefixedname.py <<EOF |
1678 > '''matched against word "clone" | 1678 > '''matched against word "clone" |
1713 Test unfound topic | 1713 Test unfound topic |
1714 | 1714 |
1715 $ hg help nonexistingtopicthatwillneverexisteverever | 1715 $ hg help nonexistingtopicthatwillneverexisteverever |
1716 abort: no such help topic: nonexistingtopicthatwillneverexisteverever | 1716 abort: no such help topic: nonexistingtopicthatwillneverexisteverever |
1717 (try 'hg help --keyword nonexistingtopicthatwillneverexisteverever') | 1717 (try 'hg help --keyword nonexistingtopicthatwillneverexisteverever') |
1718 [255] | 1718 [10] |
1719 | 1719 |
1720 Test unfound keyword | 1720 Test unfound keyword |
1721 | 1721 |
1722 $ hg help --keyword nonexistingwordthatwillneverexisteverever | 1722 $ hg help --keyword nonexistingwordthatwillneverexisteverever |
1723 abort: no matches | 1723 abort: no matches |
1724 (try 'hg help' for a list of topics) | 1724 (try 'hg help' for a list of topics) |
1725 [255] | 1725 [10] |
1726 | 1726 |
1727 Test omit indicating for help | 1727 Test omit indicating for help |
1728 | 1728 |
1729 $ cat > addverboseitems.py <<EOF | 1729 $ cat > addverboseitems.py <<EOF |
1730 > r'''extension to test omit indicating. | 1730 > r'''extension to test omit indicating. |
1867 (deprecated) The URL or directory for the default 'hg push' location. | 1867 (deprecated) The URL or directory for the default 'hg push' location. |
1868 "default:pushurl" should be used instead. | 1868 "default:pushurl" should be used instead. |
1869 | 1869 |
1870 $ hg help glossary.mcguffin | 1870 $ hg help glossary.mcguffin |
1871 abort: help section not found: glossary.mcguffin | 1871 abort: help section not found: glossary.mcguffin |
1872 [255] | 1872 [10] |
1873 | 1873 |
1874 $ hg help glossary.mc.guffin | 1874 $ hg help glossary.mc.guffin |
1875 abort: help section not found: glossary.mc.guffin | 1875 abort: help section not found: glossary.mc.guffin |
1876 [255] | 1876 [10] |
1877 | 1877 |
1878 $ hg help template.files | 1878 $ hg help template.files |
1879 files List of strings. All files modified, added, or removed by | 1879 files List of strings. All files modified, added, or removed by |
1880 this changeset. | 1880 this changeset. |
1881 files(pattern) | 1881 files(pattern) |