##// END OF EJS Templates
help: provide a more helpful message when no keyword are matched...
Pierre-Yves David -
r21288:eb6eaef7 default
parent child Browse files
Show More
@@ -481,6 +481,10 b' def help_(ui, name, unknowncmd=False, fu'
481 rst.append('%s:\n\n' % title)
481 rst.append('%s:\n\n' % title)
482 rst.extend(minirst.maketable(sorted(matches[t]), 1))
482 rst.extend(minirst.maketable(sorted(matches[t]), 1))
483 rst.append('\n')
483 rst.append('\n')
484 if not rst:
485 msg = _('no matches')
486 hint = _('try "hg help" for a list of topics')
487 raise util.Abort(msg, hint=hint)
484 elif name and name != 'shortlist':
488 elif name and name != 'shortlist':
485 i = None
489 i = None
486 if unknowncmd:
490 if unknowncmd:
@@ -988,6 +988,13 b' Test keyword search help'
988
988
989 qclone clone main and patch repository at same time
989 qclone clone main and patch repository at same time
990
990
991 Test unfound keyword
992
993 $ hg help --keyword nonexistingwordthatwillneverexisteverever
994 abort: no matches
995 (try "hg help" for a list of topics)
996 [255]
997
991 Test omit indicating for help
998 Test omit indicating for help
992
999
993 $ cat > addverboseitems.py <<EOF
1000 $ cat > addverboseitems.py <<EOF
General Comments 0
You need to be logged in to leave comments. Login now