blob: fd0f8389ef9017ed7d6bf42aa6c106fe2a5cebd3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
## vim:ft=zsh
## fossil support by: Mike Meyer (mwm@mired.org)
## Distributed under the same BSD-ish license as zsh itself.
setopt localoptions extendedglob
local a b
local -A fsinfo
local fshash fsbranch changed merging action
${vcs_comm[cmd]} status |
while IFS=: read a b; do
fsinfo[${a//-/_}]="${b## #}"
done
fshash=${fsinfo[checkout]%% *}
fsbranch=${fsinfo[tags]%%, *}
changed=${(Mk)fsinfo:#(ADDED|EDITED|DELETED|UPDATED)*}
merging=${(Mk)fsinfo:#*_BY_MERGE*}
if [ -n "$merging" ]; then
action="merging"
fi
VCS_INFO_formats "$action" "${fsbranch}" "${fsinfo[local_root]}" '' "$changed" "${fshash}" "${fsinfo[repository]}"
return 0
|