1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00

49728: vcs_info hg mq: Don't include applied patches in the unapplied patches

For instance, with 4 applied patches, 5 unapplied patches, and no guards
involved, the patch-format style would indicate 9 (= 4+5) unapplied patches
and 4 applied patches.
This commit is contained in:
Daniel Shahaf 2022-01-29 16:15:26 +00:00
parent 80389df480
commit 421f5d7f67
2 changed files with 7 additions and 0 deletions

View file

@ -1,5 +1,9 @@
2022-02-20 Daniel Shahaf <d.s@daniel.shahaf.name>
* 49728: Functions/VCS_Info/Backends/VCS_INFO_get_data_hg:
vcs_info hg mq: Don't include applied patches in the unapplied
patches
* 49727 (+ comment): Doc/Zsh/contrib.yo,
Functions/VCS_Info/Backends/VCS_INFO_get_data_git,
Functions/VCS_Info/Backends/VCS_INFO_get_data_hg,

View file

@ -183,6 +183,9 @@ if zstyle -T ":vcs_info:${vcs}:${usercontext}:${rrn}" get-mq \
# Skip commented lines
[[ ${i_patch} == [[:space:]]#"#"* ]] && continue
# Skip applied patches
(( ${+mqpatches[(re)${i_patch}]} )) && continue
# Separate negative and positive guards to more easily find the
# intersection of active guards with patch guards
i_patchguards=( ${(s: :)i_patchguards} )