zsh-users
 help / color / mirror / code / Atom feed
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 16:50:14 +0200	[thread overview]
Message-ID: <87boh4bt5l.fsf@ft.bewatermyfriend.org> (raw)
In-Reply-To: <CAPeCK2MsfJJxq0v1_eKA1uo9aJ1Mn-8+B-_YAPit-V_A4MFY6A@mail.gmail.com> (Ioannis Koutras's message of "Mon, 17 Sep 2012 15:37:34 +0200")

Ioannis Koutras wrote:
[...]
> Generally this setup works well, there is just one case where it does
> not, a mercurial repository with a git sub-repository. More
> specifically, when no change has been done I get a prompt like this:
>
>> (hg) [git --version ]
>
> On the other hand, prompt is ok if there is a change, e.g.:
>
>> (hg) [5! default ]
>
> I have found out that %i is replaced by "git" and %b by "--version" in
> formats, but in actionformats they seem to be properly replaced.
>
> Apparently this is an issue of the formatting, but in previous
> versions it was working. E.g. the same configuration works on another
> PC with zsh v4.3.17, mercurial v2.0.2 and git v1.7.9.5. Any idea what
> could be the problem?

There were no changes in the mercurial backend between 4.3.17 and 5.0.0,
so I guess mercurial changed its output. The call responsible for the
information with your setup is probably:

  % hg --debug id -i -n -b -r.

Try those in the working and the non-working setup, is there a
difference?


Regards, Frank

(CC:ing Seth, who wrote most of the advanced hg-backend code)


  reply	other threads:[~2012-09-17 14:57 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 [this message]
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
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=87boh4bt5l.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).