From 364320d2030dc26287d13ad09205c46da0308b1a Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 5 May 2006 19:35:00 +0000 Subject: - 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. --- Completion/Unix/Command/_bzr | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'Completion/Unix/Command/_bzr') 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 -- cgit 1.4.1