1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-04 06:14:50 +01:00

49709: vcs_info hg: Keep $HGPLAIN set for hooks if it had been set outside vcs_info

If someone does 'HGPLAIN=1 vcs_info', any vcs_info hooks should be called with
HGPLAIN set.  Declaring it 'local' broke that.
This commit is contained in:
Daniel Shahaf 2022-01-25 08:23:27 +00:00
parent af0f497247
commit 8460d75869
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2022-01-25 Daniel Shahaf <d.s@daniel.shahaf.name>
* 49709: Functions/VCS_Info/Backends/VCS_INFO_get_data_hg:
vcs_info hg: Keep $HGPLAIN set for hooks if it had been set
outside vcs_info
2022-01-23 Andreas Schneider <asn@cryptomilk.org>
* gitlab !17: Completion/Unix/Command/_quilt: Add missing

View file

@ -56,7 +56,6 @@ if zstyle -t ":vcs_info:${vcs}:${usercontext}:${rrn}" get-revision ; then
zstyle -t ":vcs_info:${vcs}:${usercontext}:${rrn}" \
"check-for-changes" || hgid_args+=( -r. )
local HGPLAIN
HGPLAIN=1 ${vcs_comm[cmd]} ${(z)hgid_args} 2> /dev/null \
| read -r r_csetid r_lrev
fi