mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 04:40:59 +01:00
41952: Use HGPLAIN instead of HGRCPATH in VCS_INFO_get_data_hg
Fixes prompt indicator in case if the repository requires a non-default feature. With HGRCPATH, it results in: abort: repository requires features unknown to this Mercurial: ... (see https://mercurial-scm.org/wiki/MissingRequirement for more information) Which, in turn, results in "default" getting reported regardless of what is the current state of the repo.
This commit is contained in:
parent
373538442b
commit
1a5d8a6916
2 changed files with 7 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
||||||
|
2017-10-25 Alexey Sokolov <sokolov@google.com>
|
||||||
|
|
||||||
|
* 41952: Functions/VCS_Info/Backends/VCS_INFO_get_data_hg: Use
|
||||||
|
HGPLAIN instead of HGRCPATH in VCS_INFO_get_data_hg
|
||||||
|
|
||||||
2017-10-20 Christian Brabandt <cb@256bit.org>
|
2017-10-20 Christian Brabandt <cb@256bit.org>
|
||||||
|
|
||||||
* 41943: Completion/Unix/Command/_vim: Completion: add --clean for
|
* 41943: Completion/Unix/Command/_vim: Completion: add --clean for
|
||||||
|
|
|
||||||
|
|
@ -55,8 +55,8 @@ if zstyle -t ":vcs_info:${vcs}:${usercontext}:${rrn}" get-revision ; then
|
||||||
zstyle -t ":vcs_info:${vcs}:${usercontext}:${rrn}" \
|
zstyle -t ":vcs_info:${vcs}:${usercontext}:${rrn}" \
|
||||||
"check-for-changes" || hgid_args+=( -r. )
|
"check-for-changes" || hgid_args+=( -r. )
|
||||||
|
|
||||||
local HGRCPATH
|
local HGPLAIN
|
||||||
HGRCPATH="/dev/null" ${vcs_comm[cmd]} ${(z)hgid_args} 2> /dev/null \
|
HGPLAIN=1 ${vcs_comm[cmd]} ${(z)hgid_args} 2> /dev/null \
|
||||||
| read -r r_csetid r_lrev r_branch
|
| read -r r_csetid r_lrev r_branch
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue