From 2e9cfa2e3c9e1ed6aacf3828b51ef3acce9652b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Fri, 24 Jan 2014 22:24:16 +0100 Subject: [PATCH] "hg outgoing" is slow, so diabled. closes #217 --- liquidprompt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/liquidprompt b/liquidprompt index 4052014..997f2df 100755 --- a/liquidprompt +++ b/liquidprompt @@ -837,8 +837,12 @@ _lp_hg_branch_color() fi # Count local commits waiting for a push + # + # Unfortunately this requires contacting the remote, so this is always slow + # => disabled https://github.com/nojhan/liquidprompt/issues/217 local -i commits - commits=$(hg outgoing --no-merges ${branch} 2>/dev/null | grep -c '\(^changeset\:\)') + #commits=$(hg outgoing --no-merges ${branch} 2>/dev/null | grep -c '\(^changeset\:\)') + commits=0 # Check if there is some uncommitted stuff if [[ -z "$(hg status --quiet -n)" ]] ; then