diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2017-01-23 18:15:35 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2017-01-25 04:22:32 +0000 |
commit | edd9798de765049a904e0afa830b191d1932087d (patch) | |
tree | 5250e62cc187a569e1b94a6ba7b3dd9df0d1b3ee /Functions/VCS_Info/Backends/VCS_INFO_get_data_hg | |
parent | 270285733442a46cd157ade4600e4073e255a563 (diff) | |
download | zsh-edd9798de765049a904e0afa830b191d1932087d.tar.gz zsh-edd9798de765049a904e0afa830b191d1932087d.tar.xz zsh-edd9798de765049a904e0afa830b191d1932087d.zip |
40403/0003: vcs_info set-patch-format helper: Part #3.
Diffstat (limited to 'Functions/VCS_Info/Backends/VCS_INFO_get_data_hg')
-rw-r--r-- | Functions/VCS_Info/Backends/VCS_INFO_get_data_hg | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Functions/VCS_Info/Backends/VCS_INFO_get_data_hg b/Functions/VCS_Info/Backends/VCS_INFO_get_data_hg index 90164fb52..52effa508 100644 --- a/Functions/VCS_Info/Backends/VCS_INFO_get_data_hg +++ b/Functions/VCS_Info/Backends/VCS_INFO_get_data_hg @@ -204,21 +204,14 @@ if zstyle -T ":vcs_info:${vcs}:${usercontext}:${rrn}" get-mq \ fi VCS_INFO_set-patch-format 'mqpatches' 'applied_string' \ - 'mqunapplied' 'unapplied_string' + 'mqunapplied' 'unapplied_string' \ + ":vcs_info:${vcs}:${usercontext}:${rrn}" hgmqstring if VCS_INFO_hook 'gen-mqguards-string' "${mqguards[@]}"; then guards_string=${(j:,:)mqguards} else guards_string=${hook_com[guards-string]} fi - if (( ${#mqpatches} )); then - zstyle -s ":vcs_info:${vcs}:${usercontext}:${rrn}" patch-format \ - hgmqstring || hgmqstring="%p (%n applied)" - else - zstyle -s ":vcs_info:${vcs}:${usercontext}:${rrn}" nopatch-format \ - hgmqstring || hgmqstring="no patch applied" - fi - hook_com=( applied "${applied_string}" unapplied "${unapplied_string}" applied-n ${#mqpatches} unapplied-n ${#mqunapplied} all-n ${#mqseries} guards "${guards_string}" guards-n ${#mqguards} ) |