diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2017-02-05 08:28:13 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2017-02-09 15:24:04 +0000 |
commit | ecd88284f358cbcd787757184bbf8704779cab1a (patch) | |
tree | 98fc9e76a873dc91e18a8295070373d9727ac551 /Functions/VCS_Info/Backends | |
parent | e3bc63f00e1a11df6a8a214a5d4a2e3feb59f28a (diff) | |
download | zsh-ecd88284f358cbcd787757184bbf8704779cab1a.tar.gz zsh-ecd88284f358cbcd787757184bbf8704779cab1a.tar.xz zsh-ecd88284f358cbcd787757184bbf8704779cab1a.zip |
40492: vcs_info: Escape '%' signs in payloads.
Test case: a patch whose subject is '%Sfoo%sbar'. ('S' and 's' are expandos both in prompts and in the 'formats' style.)
Diffstat (limited to 'Functions/VCS_Info/Backends')
-rw-r--r-- | Functions/VCS_Info/Backends/VCS_INFO_get_data_hg | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Functions/VCS_Info/Backends/VCS_INFO_get_data_hg b/Functions/VCS_Info/Backends/VCS_INFO_get_data_hg index 143eb42f0..d4030125c 100644 --- a/Functions/VCS_Info/Backends/VCS_INFO_get_data_hg +++ b/Functions/VCS_Info/Backends/VCS_INFO_get_data_hg @@ -202,6 +202,7 @@ if zstyle -T ":vcs_info:${vcs}:${usercontext}:${rrn}" get-mq \ if VCS_INFO_hook 'gen-mqguards-string' "${mqguards[@]}"; then guards_string=${(j:,:)mqguards} + # TODO: %-escape extra_zformats[g:...] value else guards_string=${hook_com[guards-string]} fi |