diff options
author | Clint Adams <clint@users.sourceforge.net> | 2006-07-15 19:10:52 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2006-07-15 19:10:52 +0000 |
commit | 8955509460396099bc25c64c3bc8cfec4ffaf6c3 (patch) | |
tree | 1167b98ee7e746f050b931c8e93def19b7bb9299 /Completion/Unix/Command | |
parent | 3d3318d8f6bbda7484689b0a29540858295260c9 (diff) | |
download | zsh-8955509460396099bc25c64c3bc8cfec4ffaf6c3.tar.gz zsh-8955509460396099bc25c64c3bc8cfec4ffaf6c3.tar.xz zsh-8955509460396099bc25c64c3bc8cfec4ffaf6c3.zip |
22552: update for tla 1.3.4.
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r-- | Completion/Unix/Command/_tla | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/Completion/Unix/Command/_tla b/Completion/Unix/Command/_tla index a047d1dd1..4b38071f8 100644 --- a/Completion/Unix/Command/_tla +++ b/Completion/Unix/Command/_tla @@ -8,8 +8,13 @@ local hide_short # ask the user which version of tla this is if ! zstyle -s ":completion:${curcontext}" tla-version tla_version; then # ask tla instead - tla_version="${${$($TLA --version)#tla tla-}%% from regexps.com*}" - [[ $tla_version == *[a-zA-Z]* ]] && tla_version=1.3 # tla doesn't know + tla_version="$($TLA --version)" + if [[ "${${(f)tla_version}[1]}" == The\ GNU\ Arch\ Revision\ Control\ System\ \(tla\)\ (#b)([0-9.]##) ]]; then + tla_version="$match[1]" + else + tla_version="${${$($TLA --version)#tla tla-}%% from regexps.com*}" + [[ $tla_version == *[a-zA-Z]* ]] && tla_version=1.3 # tla doesn't know + fi fi # test whether to hide short options from completion @@ -252,8 +257,9 @@ local cmd_inventory cmd_srcfind cmd_inventory=('::separator:(--)' '*:directory:_files -/') cmd_srcfind=($cmd_inventory) -local cmd_tree_lint +local cmd_tree_lint cmd_lint cmd_tree_lint=('::directory:_files -/') +cmd_lint=($cmd_tree_lint) local cmd_id cmd_invtag cmd_id=('*:file:_files') @@ -417,9 +423,10 @@ cmd_merges=(':INTO:_tla_revisions' '::FROM:_tla_revisions') local cmd_new_merges cmd_new_merges=('::version:_tla_versions') -local cmd_tag cmd_tagrev +local cmd_tag cmd_tagrev cmd_branch cmd_tag=(':SOURCE-REVISION:_tla_revisions' ':TAG-VERSION:_tla_versions') cmd_tagrev=($cmd_tag) +cmd_branch=($cmd_tag) local cmd_star_merge cmd_star_merge=(':FROM:_tla_revisions') @@ -483,6 +490,12 @@ cmd_rm=('*:file:_files') local cmd_escape cmd_escape=(':string:') +local cmd_diff +cmd_diff=('::revision:_tla_revisions') + +local cmd_export +cmd_export=(':revision:_tla_revisions' ':dir:_files -/') + #mutually exclusive options local -A excludes |