equal
deleted
inserted
replaced
359 _hg_clone_dest() { |
359 _hg_clone_dest() { |
360 _alternative 'directories:directory:_files -/' \ |
360 _alternative 'directories:directory:_files -/' \ |
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 -/' |
367 '--cwd[change working directory]:new working directory:_files -/' |
380 '--cwd[change working directory]:new working directory:_files -/' |
368 '(--noninteractive -y)'{-y,--noninteractive}'[do not prompt, assume yes for any required answers]' |
381 '(--noninteractive -y)'{-y,--noninteractive}'[do not prompt, assume yes for any required answers]' |
586 '(--rev -r)'{-r+,--rev}'[show only heads which are descendants of rev]:revision:_hg_labels' |
599 '(--rev -r)'{-r+,--rev}'[show only heads which are descendants of rev]:revision:_hg_labels' |
587 } |
600 } |
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 command:_hg_commands' |
604 '*:mercurial help topic:_hg_help_topics' |
592 } |
605 } |
593 |
606 |
594 _hg_cmd_identify() { |
607 _hg_cmd_identify() { |
595 _arguments -s -w : $_hg_global_opts \ |
608 _arguments -s -w : $_hg_global_opts \ |
596 '(--rev -r)'{-r+,--rev}'[identify the specified rev]:revision:_hg_labels' \ |
609 '(--rev -r)'{-r+,--rev}'[identify the specified rev]:revision:_hg_labels' \ |