From 7ef7b64b42b21ffa1c9d6fbb238b6b2d71ca134a Mon Sep 17 00:00:00 2001
From: Craig Kerstiens <craig.kerstiens@gmail.com>
Date: Wed, 16 Nov 2011 10:01:42 -0800
Subject: [PATCH] detecting if mercurial is used, if so install before
 requirements

---
 bin/compile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bin/compile b/bin/compile
index 27c43d59..fd8edc3f 100755
--- a/bin/compile
+++ b/bin/compile
@@ -113,6 +113,10 @@ except:
 EOF
 fi
 
+if (grep -Fiq "hg+" requirements.txt) then
+  PIP_DOWNLOAD_CACHE=$PIP_DOWNLOAD_CACHE bin/pip install --use-mirrors mercurial | indent
+fi
+
 echo "-----> Installing dependencies using pip version $(bin/pip --version | awk '{print $2}')"
 PIP_DOWNLOAD_CACHE=$PIP_DOWNLOAD_CACHE bin/pip install --use-mirrors -r requirements.txt | indent
 
-- 
GitLab