##// END OF EJS Templates
help: don't crash on help for 'sections' with multiple '.'
Mads Kiilerich -
r23122:d9e3f505 stable
parent child Browse files
Show More
@@ -3837,7 +3837,7 b' def help_(ui, name=None, **opts):'
3837 3837
3838 3838 section = None
3839 3839 if name and '.' in name:
3840 name, section = name.split('.')
3840 name, section = name.split('.', 1)
3841 3841
3842 3842 text = help.help_(ui, name, **opts)
3843 3843
@@ -1094,6 +1094,10 b' Test section lookup'
1094 1094 abort: help section not found
1095 1095 [255]
1096 1096
1097 $ hg help glossary.mc.guffin
1098 abort: help section not found
1099 [255]
1100
1097 1101 Test usage of section marks in help documents
1098 1102
1099 1103 $ cd "$TESTDIR"/../doc
General Comments 0
You need to be logged in to leave comments. Login now