32642: improve bzr completion with directory path

This commit is contained in:
Sebastien Alaiwan 2014-02-22 20:26:55 +01:00 committed by Peter Stephenson
parent 7e04c1a53d
commit afe7ff6b5d
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2014-02-24 Peter Stephenson <p.stephenson@samsung.com>
* Sebastien Alaiwan: 32462: Completion/Unix/Command/_bzr:
improve completion with directory path.
2014-02-23 Barton E. Schaefer <schaefer@zsh.org>
* 32427: Doc/Zsh/zle.yo, Src/Zle/zle_main.c: avoid busy loop

View File

@ -25,7 +25,7 @@ curcontext="${curcontext%:*:*}:bzr-$cmd:"
(( $+functions[_bzr_unknownFiles] )) ||
_bzr_unknownFiles() {
local fileList
fileList=(${(ps:\0:)"$(bzr ls --null --unknown)"})
fileList=(${(ps:\0:)"$(bzr ls --null --unknown -R)"})
compadd -af fileList
return 0
}
@ -41,7 +41,7 @@ _bzr_unknownRoot() {
(( $+functions[_bzr_versionedFiles] )) ||
_bzr_versionedFiles() {
local fileList
fileList=(${(ps:\0:)"$(bzr ls --null --versioned)"})
fileList=(${(ps:\0:)"$(bzr ls --null --versioned -R)"})
compadd -af fileList
return 0
}