diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-12-11 09:53:12 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-12-11 09:53:12 +0000 |
commit | b4a2d51e57b1f50db4b9e489652daf35f1e583d0 (patch) | |
tree | ec0ce579ca82b5498ee579f415cc81d838702dd2 /Functions/VCS_Info/Backends/VCS_INFO_get_data_p4 | |
parent | 37a4dce4bc5b38a686516e22d0dc81a90b757d91 (diff) | |
download | zsh-b4a2d51e57b1f50db4b9e489652daf35f1e583d0.tar.gz zsh-b4a2d51e57b1f50db4b9e489652daf35f1e583d0.tar.xz zsh-b4a2d51e57b1f50db4b9e489652daf35f1e583d0.zip |
Frank Terbeck: 26125: add "command" style to VCS_INFO
Diffstat (limited to 'Functions/VCS_Info/Backends/VCS_INFO_get_data_p4')
-rw-r--r-- | Functions/VCS_Info/Backends/VCS_INFO_get_data_p4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Functions/VCS_Info/Backends/VCS_INFO_get_data_p4 b/Functions/VCS_Info/Backends/VCS_INFO_get_data_p4 index 077306aa1..dccd9d340 100644 --- a/Functions/VCS_Info/Backends/VCS_INFO_get_data_p4 +++ b/Functions/VCS_Info/Backends/VCS_INFO_get_data_p4 @@ -7,7 +7,7 @@ setopt localoptions extendedglob local p4base a b local -A p4info -p4 info | while IFS=: read a b; do p4info[${a// /_}]="${b## #}"; done +${vcs_comm[cmd]} info | while IFS=: read a b; do p4info[${a// /_}]="${b## #}"; done p4base=${vcs_comm[basedir]} # We'll use the client name as the branch; close enough. @@ -15,7 +15,7 @@ local p4branch change # We'll use the latest change number to which the hierarchy from # here down is synced as the revision. # I suppose the following might be slow on a tortuous client view. -change="${${$(p4 changes -m 1 ...\#have)##Change }%% *}" +change="${${$(${vcs_comm[cmd]} changes -m 1 ...\#have)##Change }%% *}" zstyle -s ":vcs_info:${vcs}:${usercontext}:${rrn}" branchformat p4branch || p4branch="%b:%r" zformat -f p4branch "${p4branch}" "b:${p4info[Client_name]}" \ |