Mercurial > public > mercurial-scm > hg
diff tests/test-help.t @ 22587:c3c3dd31fe1c
help: basic support for showing only specified topic sections
For instance, 'hg help config.files' will show only the Files section.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 30 Sep 2014 16:40:10 -0500 |
parents | 4e0b696a1cb3 |
children | de9424647fe4 |
line wrap: on
line diff
--- a/tests/test-help.t Tue Sep 30 15:55:30 2014 -0500 +++ b/tests/test-help.t Tue Sep 30 16:40:10 2014 -0500 @@ -1046,6 +1046,25 @@ This paragraph is never omitted, too (for topic) +Test section lookup + + $ hg help revset.merge + "merge()" + Changeset is a merge changeset. + + $ hg help glossary.dag + DAG + The repository of changesets of a distributed version control system + (DVCS) can be described as a directed acyclic graph (DAG), consisting + of nodes and edges, where nodes correspond to changesets and edges + imply a parent -> child relation. This graph can be visualized by + graphical tools such as "hg log --graph". In Mercurial, the DAG is + limited by the requirement for children to have at most two parents. + + $ hg help glossary.mcguffin + abort: help section not found + [255] + Test usage of section marks in help documents $ cd "$TESTDIR"/../doc