Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: vcs_info on a hg repository with a git subrepository; actionformats works ok, formats does not
Ioannis Koutras wrote:
[...]
> +VCS_INFO_get_data_hg:52> local HGRCPATH
> +VCS_INFO_get_data_hg:54> read -r r_csetid r_lrev r_branch
> +VCS_INFO_get_data_hg:53> HGRCPATH=/dev/null hg --debug id -i -n -b
> +VCS_INFO_get_data_hg:59> [[ -z --version ]]
> +VCS_INFO_get_data_hg:64> [[ -n --version ]]
[...]
[...]
> +VCS_INFO_get_data_hg:52> local HGRCPATH
> +VCS_INFO_get_data_hg:54> read -r r_csetid r_lrev r_branch
> +VCS_INFO_get_data_hg:53> HGRCPATH=/dev/null hg --debug id -i -n -b
> +VCS_INFO_get_data_hg:59> [[ -z default ]]
> +VCS_INFO_get_data_hg:64> [[ -n default ]]
[...]
That part of the trace corresponds to this code:
[snip]
local HGRCPATH
HGRCPATH="/dev/null" ${vcs_comm[cmd]} ${(z)hgid_args} 2> /dev/null \
| read -r r_csetid r_lrev r_branch
fi
fi
# If the user doesn't opt to invoke hg we can still get the current branch
if [[ -z ${r_branch} && -r ${branchfile} ]] ; then
r_branch=$(< ${branchfile})
fi
# If we still don't know the branch it's safe to assume default
[[ -n ${r_branch} ]] || r_branch="default"
[snap]
Thus, the output of "HGRCPATH=/dev/null hg --debug id -i -n -b" has to
contain "--version" in its output on the non-working system. Can you
please check that again?
Regards, Frank
Messages sorted by:
Reverse Date,
Date,
Thread,
Author