1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-03 20:20:56 +02:00

- 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.
This commit is contained in:
Wayne Davison 2006-05-05 19:35:00 +00:00
parent 3c9f1d3d15
commit 364320d203

View file

@ -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