equal
deleted
inserted
replaced
237 _alternative 'path-aliases:repository alias:_hg_paths' \ |
237 _alternative 'path-aliases:repository alias:_hg_paths' \ |
238 'directories:directory:_files -/' \ |
238 'directories:directory:_files -/' \ |
239 'urls:URL:_hg_urls' |
239 'urls:URL:_hg_urls' |
240 } |
240 } |
241 |
241 |
|
242 _hg_clone_dest() { |
|
243 _alternative 'directories:directory:_files -/' \ |
|
244 'urls:URL:_hg_urls' |
|
245 } |
|
246 |
242 # Common options |
247 # Common options |
243 _hg_global_opts=( |
248 _hg_global_opts=( |
244 '(--repository -R)'{-R+,--repository}'[repository root directory]:repository:_files -/' |
249 '(--repository -R)'{-R+,--repository}'[repository root directory]:repository:_files -/' |
245 '--cwd[change working directory]:new working directory:_files -/' |
250 '--cwd[change working directory]:new working directory:_files -/' |
246 '(--noninteractive -y)'{-y,--noninteractive}'[do not prompt, assume yes for any required answers]' |
251 '(--noninteractive -y)'{-y,--noninteractive}'[do not prompt, assume yes for any required answers]' |
335 _arguments -s -w : $_hg_global_opts $_hg_remote_opts \ |
340 _arguments -s -w : $_hg_global_opts $_hg_remote_opts \ |
336 '(--noupdate -U)'{-U,--noupdate}'[do not update the new working directory]' \ |
341 '(--noupdate -U)'{-U,--noupdate}'[do not update the new working directory]' \ |
337 '(--rev -r)'{-r+,--rev}'[a changeset you would like to have after cloning]:' \ |
342 '(--rev -r)'{-r+,--rev}'[a changeset you would like to have after cloning]:' \ |
338 '--uncompressed[use uncompressed transfer (fast over LAN)]' \ |
343 '--uncompressed[use uncompressed transfer (fast over LAN)]' \ |
339 ':source repository:_hg_remote' \ |
344 ':source repository:_hg_remote' \ |
340 ':destination:_files -/' |
345 ':destination:_hg_clone_dest' |
341 } |
346 } |
342 |
347 |
343 _hg_cmd_commit() { |
348 _hg_cmd_commit() { |
344 _arguments -s -w : $_hg_global_opts $_hg_pat_opts \ |
349 _arguments -s -w : $_hg_global_opts $_hg_pat_opts \ |
345 '(--addremove -A)'{-A,--addremove}'[mark new/missing files as added/removed before committing]' |
350 '(--addremove -A)'{-A,--addremove}'[mark new/missing files as added/removed before committing]' |