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:
parent
3c9f1d3d15
commit
364320d203
1 changed files with 10 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue