From: Frank Terbeck <ft@bewatermyfriend.org>
To: Ioannis Koutras <ioannis.koutras@gmail.com>
Cc: zsh-users@zsh.org, Seth House <seth@eseth.com>
Subject: Re: vcs_info on a hg repository with a git subrepository; actionformats works ok, formats does not
Date: Mon, 17 Sep 2012 18:01:21 +0200 [thread overview]
Message-ID: <87zk4oabam.fsf@ft.bewatermyfriend.org> (raw)
In-Reply-To: <CAPeCK2PwM=GNAhxqmn-bMiDfKhpXJpOGgCqs05KJvMg1RsqkNg@mail.gmail.com> (Ioannis Koutras's message of "Mon, 17 Sep 2012 17:38:44 +0200")
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
next prev parent reply other threads:[~2012-09-17 16:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-17 13:37 Ioannis Koutras
2012-09-17 14:50 ` Frank Terbeck
2012-09-17 15:02 ` Ioannis Koutras
2012-09-17 15:15 ` Frank Terbeck
2012-09-17 15:38 ` Ioannis Koutras
2012-09-17 16:01 ` Frank Terbeck [this message]
2012-09-17 16:06 ` Seth House
2012-09-17 16:33 ` Frank Terbeck
2012-09-17 16:57 ` Seth House
2012-09-17 19:53 ` Seth House
2012-09-17 20:23 ` Seth House
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zk4oabam.fsf@ft.bewatermyfriend.org \
--to=ft@bewatermyfriend.org \
--cc=ioannis.koutras@gmail.com \
--cc=seth@eseth.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).