Re: Mercurial with bash prompt

2015-06-22 Thread Gregory Szorc
Install "hgwatchman" to make status fast. It runs the "watchman" file system watching tool so Mercurial barely has to talk to the file system when doing status, diff, commit, and similar operations. This profile doesn't show it, but "incoming" and "outgoing" usually require network I/O to disco

Re: Mercurial with bash prompt

2015-06-20 Thread Amit Zur
I like to see the status in my prompt, so I know if my repo is dirty. so I put this into PS1: hg prompt "[{branch}{status}] " 2> /dev/null and the status is killing it. Here's the --profile for {status}: https://pastebin.mozilla.org/8837469 Thanks! On Saturday, June 20, 2015 at 8:09:58 AM UTC+3

Re: Mercurial with bash prompt

2015-06-19 Thread wkocher
The "advanced" prompt at http://sjl.bitbucket.org/hg-prompt/quickstart/ does cause quite a bit of lag before it shows anything. Here's what --profile gives me: https://pastebin.mozilla.org/8837461 One thing I'd like to add with prompt would be the current label (central/inbound/etc) provided

Re: Mercurial with bash prompt

2015-06-19 Thread Gregory Szorc
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.mozill