Re: Mercurial performance (vs git)

2016-08-15 Thread Gregory Szorc
Printing dirty state would require a potentially expensive filesystem operation to see if the working directory is modified. Your shell prompt can either be consistently fast or randomly slow'ish. Pick 1. FWIW on a clean working directory on my machine: 1000+ms `hg status` or `git status` if the

Re: Mercurial performance (vs git)

2016-08-15 Thread Tim Guan-tin Chien
This looks really great until I realized it did not print dirty state. There is probably no way to get the state without, say, `git status --porcelain --u=no`, right? On Tue, Aug 16, 2016 at 4:09 AM, Gregory Szorc wrote: > I use Facebook's scm-prompt.sh from >

Re: Mercurial performance (vs git)

2016-08-15 Thread zbraniecki
On Monday, August 15, 2016 at 1:12:51 PM UTC-7, Matthew N. wrote: > Make sure you have enabled the fsmonitor[1] extension for mercurial if > your prompt is using `hg` commands. I believe `mach mercurial-setup` now > helps with this. Ugh, that helps as hell! I installed watchman and turned on

Re: Mercurial performance (vs git)

2016-08-15 Thread Matthew N.
Make sure you have enabled the fsmonitor[1] extension for mercurial if your prompt is using `hg` commands. I believe `mach mercurial-setup` now helps with this. Matthew N. (:MattN) [1] https://www.mercurial-scm.org/wiki/FsMonitorExtension On 2016-08-15 12:46 PM, Botond Ballo wrote:

Re: Mercurial performance (vs git)

2016-08-15 Thread Mike de Boer
When I use https://gist.github.com/mikedeboer/fa806e2868c5962b9741715e5fd762d5 (homegrown script that evolved over years) I get instant results. I didn’t measure its perf. It might suit your needs, it might not. It comes

Re: Mercurial performance (vs git)

2016-08-15 Thread Botond Ballo
Cross-posting to dev-version-control On Mon, Aug 15, 2016 at 3:39 PM, wrote: > For the last few months I've been mostly using git clone of mozilla-central > because I'm used to git. Now I'm trying to set up my mercurial environment to > match what I have for git in

Mercurial performance (vs git)

2016-08-15 Thread zbraniecki
For the last few months I've been mostly using git clone of mozilla-central because I'm used to git. Now I'm trying to set up my mercurial environment to match what I have for git in order to reduce the bias toward the latter. One of the crucial parts of my workflow is the git completion shell