From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27666 invoked by alias); 17 Sep 2012 16:24:20 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17277 Received: (qmail 22375 invoked from network); 17 Sep 2012 16:24:09 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at bewatermyfriend.org does not designate permitted sender hosts) From: Frank Terbeck To: Ioannis Koutras Cc: zsh-users@zsh.org, Seth House Subject: Re: vcs_info on a hg repository with a git subrepository; actionformats works ok, formats does not In-Reply-To: (Ioannis Koutras's message of "Mon, 17 Sep 2012 17:38:44 +0200") References: <87boh4bt5l.fsf@ft.bewatermyfriend.org> <877grsbrz7.fsf@ft.bewatermyfriend.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) Date: Mon, 17 Sep 2012 18:01:21 +0200 Message-ID: <87zk4oabam.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain X-Df-Sender: [pbs]MzQ5NTM4 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