vcs_info
Check-in [c7c5bd8cf8]
Not logged in
Public Repositories
mwm's Repositories

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Remove an unused variable.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:c7c5bd8cf823d6035cb53b665d4e1e8b6d0b879d
User & Date: mwm 2011-02-24 06:56:20
Context
2011-02-24
07:56
Some whitespace changes for readability check-in: 253b2550d0 user: mwm tags: trunk
06:56
Remove an unused variable. check-in: c7c5bd8cf8 user: mwm tags: trunk
03:57
Fix local declarations check-in: 4ff73978a6 user: mwm tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to VCS_INFO_get_data_fossil.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
## vim:ft=zsh
## perforce support by: Phil Pennock
## Distributed under the same BSD-ish license as zsh itself.

# XXX: This soooo needs to be cached
setopt localoptions extendedglob
local fsbase a b
local change changed
local action merging
local -A fsinfo
local -xA hook_com

${vcs_comm[cmd]} status | while IFS=: read a b; do fsinfo[${a//-/_}]="${b## #}"; done
fsbase=${vcs_comm[basedir]}
fshash=${fsinfo[checkout]%% *}
changed=${(Mk)fsinfo:#(ADDED|EDITED|DELETED|UPDATED)*}
merging=${(Mk)fsinfo:#*_BY_MERGE*}
if [ -n "$merging" ]; then
   action="merging"
fi







|






<







1
2
3
4
5
6
7
8
9
10
11
12
13

14
15
16
17
18
19
20
## vim:ft=zsh
## perforce support by: Phil Pennock
## Distributed under the same BSD-ish license as zsh itself.

# XXX: This soooo needs to be cached
setopt localoptions extendedglob
local a b
local change changed
local action merging
local -A fsinfo
local -xA hook_com

${vcs_comm[cmd]} status | while IFS=: read a b; do fsinfo[${a//-/_}]="${b## #}"; done

fshash=${fsinfo[checkout]%% *}
changed=${(Mk)fsinfo:#(ADDED|EDITED|DELETED|UPDATED)*}
merging=${(Mk)fsinfo:#*_BY_MERGE*}
if [ -n "$merging" ]; then
   action="merging"
fi