Show More
@@ -361,6 +361,19 b' typeset -A _hg_cmd_globals' | |||||
361 | 'urls:URL:_hg_urls' |
|
361 | 'urls:URL:_hg_urls' | |
362 | } |
|
362 | } | |
363 |
|
363 | |||
|
364 | _hg_add_help_topics=( | |||
|
365 | config dates diffs environment extensions filesets glossary hgignore hgweb | |||
|
366 | merge-tools multirevs obsolescence patterns phases revisions revsets | |||
|
367 | subrepos templating urls | |||
|
368 | ) | |||
|
369 | ||||
|
370 | _hg_help_topics() { | |||
|
371 | local topics | |||
|
372 | (( $#_hg_cmd_list )) || _hg_get_commands | |||
|
373 | topics=($_hg_cmd_list $_hg_add_help_topics) | |||
|
374 | _describe -t help_topics 'help topics' topics | |||
|
375 | } | |||
|
376 | ||||
364 | # Common options |
|
377 | # Common options | |
365 | _hg_global_opts=( |
|
378 | _hg_global_opts=( | |
366 | '(--repository -R)'{-R+,--repository}'[repository root directory]:repository:_files -/' |
|
379 | '(--repository -R)'{-R+,--repository}'[repository root directory]:repository:_files -/' | |
@@ -588,7 +601,7 b' typeset -A _hg_cmd_globals' | |||||
588 |
|
601 | |||
589 | _hg_cmd_help() { |
|
602 | _hg_cmd_help() { | |
590 | _arguments -s -w : $_hg_global_opts \ |
|
603 | _arguments -s -w : $_hg_global_opts \ | |
591 |
'*:mercurial c |
|
604 | '*:mercurial help topic:_hg_help_topics' | |
592 | } |
|
605 | } | |
593 |
|
606 | |||
594 | _hg_cmd_identify() { |
|
607 | _hg_cmd_identify() { |
General Comments 0
You need to be logged in to leave comments.
Login now