equal
deleted
inserted
replaced
469 _arguments -s -S : $_hg_global_opts $_hg_pat_opts $_hg_dryrun_opts $_hg_subrepos_opts \ |
469 _arguments -s -S : $_hg_global_opts $_hg_pat_opts $_hg_dryrun_opts $_hg_subrepos_opts \ |
470 '*:unknown files:_hg_unknown' |
470 '*:unknown files:_hg_unknown' |
471 } |
471 } |
472 |
472 |
473 _hg_cmd_addremove() { |
473 _hg_cmd_addremove() { |
474 _arguments -s -S : $_hg_global_opts $_hg_pat_opts $_hg_dryrun_opts \ |
474 _arguments -s -S : $_hg_global_opts $_hg_pat_opts $_hg_dryrun_opts $_hg_subrepos_opts \ |
475 '(--similarity -s)'{-s+,--similarity=}'[guess renamed files by similarity (0<=s<=100)]:similarity' \ |
475 '(--similarity -s)'{-s+,--similarity=}'[guess renamed files by similarity (0<=s<=100)]:similarity' \ |
476 '*:unknown or missing files:_hg_addremove' |
476 '*:unknown or missing files:_hg_addremove' |
477 } |
477 } |
478 |
478 |
479 _hg_cmd_annotate() { |
479 _hg_cmd_annotate() { |
801 '--new-branch[allow pushing a new branch]' \ |
801 '--new-branch[allow pushing a new branch]' \ |
802 ':destination:_hg_remote' |
802 ':destination:_hg_remote' |
803 } |
803 } |
804 |
804 |
805 _hg_cmd_remove() { |
805 _hg_cmd_remove() { |
806 _arguments -s -S : $_hg_global_opts $_hg_pat_opts $_hg_dryrun_opts \ |
806 _arguments -s -S : $_hg_global_opts $_hg_pat_opts $_hg_dryrun_opts $_hg_subrepos_opts \ |
807 '(--after -A)'{-A,--after}'[record delete for missing files]' \ |
807 '(--after -A)'{-A,--after}'[record delete for missing files]' \ |
808 '(--force -f)'{-f,--force}'[forget added files, delete modified files]' \ |
808 '(--force -f)'{-f,--force}'[forget added files, delete modified files]' \ |
809 '*:file:_hg_files' |
809 '*:file:_hg_files' |
810 } |
810 } |
811 |
811 |
868 _arguments -s -S : $_hg_global_opts $_hg_dryrun_opts \ |
868 _arguments -s -S : $_hg_global_opts $_hg_dryrun_opts \ |
869 '(--force -f)'{-f,--force}'[ignore safety measures]' \ |
869 '(--force -f)'{-f,--force}'[ignore safety measures]' \ |
870 } |
870 } |
871 |
871 |
872 _hg_cmd_serve() { |
872 _hg_cmd_serve() { |
873 _arguments -s -S : $_hg_global_opts \ |
873 _arguments -s -S : $_hg_global_opts $_hg_subrepos_opts \ |
874 '(--accesslog -A)'{-A+,--accesslog=}'[name of access log file to write to]:log file:_files' \ |
874 '(--accesslog -A)'{-A+,--accesslog=}'[name of access log file to write to]:log file:_files' \ |
875 '(--errorlog -E)'{-E+,--errorlog=}'[name of error log file to write to]:log file:_files' \ |
875 '(--errorlog -E)'{-E+,--errorlog=}'[name of error log file to write to]:log file:_files' \ |
876 '(--daemon -d)'{-d,--daemon}'[run server in background]' \ |
876 '(--daemon -d)'{-d,--daemon}'[run server in background]' \ |
877 '(--port -p)'{-p+,--port=}'[port to listen on (default: 8000)]:listen port' \ |
877 '(--port -p)'{-p+,--port=}'[port to listen on (default: 8000)]:listen port' \ |
878 '(--address -a)'{-a+,--address=}'[address to listen on (default: all interfaces)]:interface address' \ |
878 '(--address -a)'{-a+,--address=}'[address to listen on (default: all interfaces)]:interface address' \ |
1044 '(--applied -a)'{-a,--applied}'[finish all applied patches]' \ |
1044 '(--applied -a)'{-a,--applied}'[finish all applied patches]' \ |
1045 '*:patch:_hg_qapplied' |
1045 '*:patch:_hg_qapplied' |
1046 } |
1046 } |
1047 |
1047 |
1048 _hg_cmd_qfold() { |
1048 _hg_cmd_qfold() { |
1049 _arguments -s -S : $_hg_global_opts $_h_commit_opts \ |
1049 _arguments -s -S : $_hg_global_opts $_hg_commit_opts \ |
1050 '(--keep -k)'{-k,--keep}'[keep folded patch files]' \ |
1050 '(--keep -k)'{-k,--keep}'[keep folded patch files]' \ |
1051 '(--force -f)'{-f,--force}'[overwrite any local changes]' \ |
1051 '(--force -f)'{-f,--force}'[overwrite any local changes]' \ |
1052 '--no-backup[do not save backup copies of files]' \ |
1052 '--no-backup[do not save backup copies of files]' \ |
1053 '*:unapplied patch:_hg_qunapplied' |
1053 '*:unapplied patch:_hg_qunapplied' |
1054 } |
1054 } |
1082 '(--push -P)'{-P,--push}'[qpush after importing]' \ |
1082 '(--push -P)'{-P,--push}'[qpush after importing]' \ |
1083 '*:patch:_files' |
1083 '*:patch:_files' |
1084 } |
1084 } |
1085 |
1085 |
1086 _hg_cmd_qnew() { |
1086 _hg_cmd_qnew() { |
1087 _arguments -s -S : $_hg_global_opts $_hg_commit_opts $_hg_date_user_opts $_hg_gitlike_opts \ |
1087 _arguments -s -S : $_hg_global_opts $_hg_pat_opts $_hg_commit_opts $_hg_date_user_opts $_hg_gitlike_opts \ |
1088 ':patch:' |
1088 ':patch:' |
1089 } |
1089 } |
1090 |
1090 |
1091 _hg_cmd_qnext() { |
1091 _hg_cmd_qnext() { |
1092 _arguments -s -S : $_hg_global_opts $_hg_qseries_opts |
1092 _arguments -s -S : $_hg_global_opts $_hg_qseries_opts |
1116 '--no-backup[do not save backup copies of files]' \ |
1116 '--no-backup[do not save backup copies of files]' \ |
1117 ':patch:_hg_qunapplied' |
1117 ':patch:_hg_qunapplied' |
1118 } |
1118 } |
1119 |
1119 |
1120 _hg_cmd_qrefresh() { |
1120 _hg_cmd_qrefresh() { |
1121 _arguments -s -S : $_hg_global_opts $_hg_pat_opts $_hg_commit_opts $_hg_gitlike_opts \ |
1121 _arguments -s -S : $_hg_global_opts $_hg_pat_opts $_hg_commit_opts $_hg_date_user_opts $_hg_gitlike_opts \ |
1122 '(--short -s)'{-s,--short}'[short refresh]' \ |
1122 '(--short -s)'{-s,--short}'[short refresh]' \ |
1123 '*:files:_hg_files' |
1123 '*:files:_hg_files' |
1124 } |
1124 } |
1125 |
1125 |
1126 _hg_cmd_qrename() { |
1126 _hg_cmd_qrename() { |
1192 ':revision:_hg_revrange' |
1192 ':revision:_hg_revrange' |
1193 } |
1193 } |
1194 |
1194 |
1195 # Rebase |
1195 # Rebase |
1196 _hg_cmd_rebase() { |
1196 _hg_cmd_rebase() { |
1197 _arguments -s -S : $_hg_global_opts $_hg_commit_opts $_hg_mergetool_opts \ |
1197 _arguments -s -S : $_hg_global_opts $_hg_commit_opts $_hg_mergetool_opts $_hg_dryrun_opts \ |
1198 '*'{-r+,--rev=}'[rebase these revisions]:revision:_hg_revrange' \ |
1198 '*'{-r+,--rev=}'[rebase these revisions]:revision:_hg_revrange' \ |
1199 '(--source -s --base -b)'{-s+,--source=}'[rebase the specified changeset and descendants]:revision:_hg_labels' \ |
1199 '(--source -s --base -b)'{-s+,--source=}'[rebase the specified changeset and descendants]:revision:_hg_labels' \ |
1200 '(--source -s --base -b)'{-b+,--base=}'[rebase everything from branching point of specified changeset]:revision:_hg_labels' \ |
1200 '(--source -s --base -b)'{-b+,--base=}'[rebase everything from branching point of specified changeset]:revision:_hg_labels' \ |
1201 '(--dest -d)'{-d+,--dest=}'[rebase onto the specified changeset]:revision:_hg_labels' \ |
1201 '(--dest -d)'{-d+,--dest=}'[rebase onto the specified changeset]:revision:_hg_labels' \ |
1202 '--collapse[collapse the rebased changesets]' \ |
1202 '--collapse[collapse the rebased changesets]' \ |
1239 '--closesort[try to reorder closed revisions]' |
1239 '--closesort[try to reorder closed revisions]' |
1240 } |
1240 } |
1241 |
1241 |
1242 # Purge |
1242 # Purge |
1243 _hg_cmd_purge() { |
1243 _hg_cmd_purge() { |
1244 _arguments -s -S : $_hg_global_opts $_hg_pat_opts $_hg_subrepos_opts \ |
1244 _arguments -s -S : $_hg_global_opts $_hg_pat_opts \ |
1245 '(--abort-on-err -a)'{-a,--abort-on-err}'[abort if an error occurs]' \ |
1245 '(--abort-on-err -a)'{-a,--abort-on-err}'[abort if an error occurs]' \ |
1246 '--all[purge ignored files too]' \ |
1246 '--all[purge ignored files too]' \ |
1247 '(--print -p)'{-p,--print}'[print filenames instead of deleting them]' \ |
1247 '(--print -p)'{-p,--print}'[print filenames instead of deleting them]' \ |
1248 '(--print0 -0)'{-0,--print0}'[end filenames with NUL, for use with xargs (implies -p/--print)]' |
1248 '(--print0 -0)'{-0,--print0}'[end filenames with NUL, for use with xargs (implies -p/--print)]' |
1249 } |
1249 } |