summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_bzr13
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