* [PATCH] vcs_info hg: Keep $HGPLAIN set for hooks if it had been set outside vcs_info
@ 2022-01-25 8:25 Daniel Shahaf
0 siblings, 0 replies; only message in thread
From: Daniel Shahaf @ 2022-01-25 8:25 UTC (permalink / raw)
To: zsh-workers
If someone does 'HGPLAIN=1 vcs_info', any vcs_info hooks should be called with
HGPLAIN set. Declaring it 'local' broke that.
---
Functions/VCS_Info/Backends/VCS_INFO_get_data_hg | 1 -
1 file changed, 1 deletion(-)
diff --git a/Functions/VCS_Info/Backends/VCS_INFO_get_data_hg b/Functions/VCS_Info/Backends/VCS_INFO_get_data_hg
index 2806aee1d..b123e2270 100644
--- a/Functions/VCS_Info/Backends/VCS_INFO_get_data_hg
+++ b/Functions/VCS_Info/Backends/VCS_INFO_get_data_hg
@@ -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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-25 8:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-25 8:25 [PATCH] vcs_info hg: Keep $HGPLAIN set for hooks if it had been set outside vcs_info Daniel Shahaf
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).