diff options
author | Wayne Davison <wayned@users.sourceforge.net> | 2006-05-05 19:35:00 +0000 |
---|---|---|
committer | Wayne Davison <wayned@users.sourceforge.net> | 2006-05-05 19:35:00 +0000 |
commit | 364320d2030dc26287d13ad09205c46da0308b1a (patch) | |
tree | 7432e25fc69cee4ba8579c914a885ebb4cfcbd70 /Completion/Unix/Command | |
parent | 3c9f1d3d1514eeed49c865a45ec7b8cc74fa6655 (diff) | |
download | zsh-364320d2030dc26287d13ad09205c46da0308b1a.tar.gz zsh-364320d2030dc26287d13ad09205c46da0308b1a.tar.xz zsh-364320d2030dc26287d13ad09205c46da0308b1a.zip |
- Fixed _bzr_completeParents to read the parent info from the right
file. - Separated the upgrade sub-command so that we can add its missing --format option.
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r-- | Completion/Unix/Command/_bzr | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_bzr b/Completion/Unix/Command/_bzr index 618a1f0bc..0c4c1b5fb 100644 --- a/Completion/Unix/Command/_bzr +++ b/Completion/Unix/Command/_bzr @@ -48,7 +48,7 @@ _bzr_versionedFiles() { (( $+functions[_bzr_completeParents] )) || _bzr_completeParents() { - local parentFile=$(bzr root 2>/dev/null)/.bzr/parent + local parentFile=$(bzr root 2>/dev/null)/.bzr/branch/parent [[ -r $parentFile ]] && compadd -X "Completing parents" $(cat $parentFile) } @@ -134,10 +134,17 @@ case $cmd in ) ;; -(mkdir|upgrade|renames) +(mkdir|renames) args+=( '*:DIR:_files -/' ) ;; +(upgrade) + args+=( + '--format=[new format for repository]:format:(default knit metaweave weave)' + '*:DIR:_files -/' + ) + ;; + (remove|rm) args+=( '(-v --verbose)'{--verbose,-v}'[display more information]' @@ -323,4 +330,4 @@ case $cmd in esac _arguments -s "$args[@]" && ret=0 -return ret +return $ret |