I have the following:

hg_ps1() {
  hg prompt "{({bookmark})}" 2> /dev/null
}

export PS1='... $(hg_ps1)\$ '

I do not get multiple second latency.

You should capture --profile output from your prompt command and see what's
taking so long. File a Mozilla bug against Developer Services ::
hg.mozilla.org (for lack of a better component) and we'll dig to the bottom
of it. See also
https://mozilla-version-control-tools.readthedocs.org/en/latest/hgmozilla/issues.html

On Fri, Jun 19, 2015 at 8:01 AM, Amit Zur <sendwithch...@gmail.com> wrote:

> Does anyone here who works on FF source use some bash prompt variation for
> mercurial?
> something like this:
> http://stevelosh.com/blog/2009/03/mercurial-bash-prompts/
>
> I was wondering what you use since the method in this link is taking a lot
> of seconds to run on each prompt.
>
> Can you share your $PS1 ?
>
> Thanks,
> Amit
> _______________________________________________
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
>
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to