mirror of
https://git.code.sf.net/p/zsh/code
synced 2026-04-25 01:52:33 -04:00
19 lines
512 B
Bash
19 lines
512 B
Bash
## vim:ft=zsh
|
|
## cvs support by: Frank Terbeck <ft@bewatermyfriend.org>
|
|
## Distributed under the same BSD-ish license as zsh itself.
|
|
|
|
setopt localoptions NO_shwordsplit
|
|
local cvsbranch cvsbase
|
|
|
|
cvsbase="."
|
|
while [[ -d "${cvsbase}/../CVS" ]]; do
|
|
cvsbase="${cvsbase}/.."
|
|
done
|
|
cvsbase="$(VCS_INFO_realpath ${cvsbase})"
|
|
cvsbranch=$(< ./CVS/Repository)
|
|
rrn=${cvsbase:t}
|
|
cvsbranch=${cvsbranch##${rrn}/}
|
|
[[ -z ${cvsbranch} ]] && cvsbranch=${rrn}
|
|
VCS_INFO_formats '' "${cvsbranch}" "${cvsbase}" '' '' '' ''
|
|
return 0
|