##// END OF EJS Templates
help: show section that couldn't be found...
Yuya Nishihara -
r30878:f36eec4b default
parent child Browse files
Show More
@@ -3916,6 +3916,7 b' def help_(ui, name=None, **opts):'
3916 if ui.verbose:
3916 if ui.verbose:
3917 keep.append('verbose')
3917 keep.append('verbose')
3918
3918
3919 fullname = name
3919 section = None
3920 section = None
3920 subtopic = None
3921 subtopic = None
3921 if name and '.' in name:
3922 if name and '.' in name:
@@ -3938,7 +3939,7 b' def help_(ui, name=None, **opts):'
3938 # to look for, or we could have simply failed to found "foo.bar"
3939 # to look for, or we could have simply failed to found "foo.bar"
3939 # because bar isn't a section of foo
3940 # because bar isn't a section of foo
3940 if section and not (formatted and name):
3941 if section and not (formatted and name):
3941 raise error.Abort(_("help section not found"))
3942 raise error.Abort(_("help section not found: %s") % fullname)
3942
3943
3943 if 'verbose' in pruned:
3944 if 'verbose' in pruned:
3944 keep.append('omitted')
3945 keep.append('omitted')
@@ -1547,11 +1547,11 b' Test section lookup'
1547 "default:pushurl" should be used instead.
1547 "default:pushurl" should be used instead.
1548
1548
1549 $ hg help glossary.mcguffin
1549 $ hg help glossary.mcguffin
1550 abort: help section not found
1550 abort: help section not found: glossary.mcguffin
1551 [255]
1551 [255]
1552
1552
1553 $ hg help glossary.mc.guffin
1553 $ hg help glossary.mc.guffin
1554 abort: help section not found
1554 abort: help section not found: glossary.mc.guffin
1555 [255]
1555 [255]
1556
1556
1557 $ hg help template.files
1557 $ hg help template.files
General Comments 0
You need to be logged in to leave comments. Login now