aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index f69c9f57c..a66348f8c 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -207,6 +207,12 @@ end
class MercurialDownloadStrategy <AbstractDownloadStrategy
def fetch
+ raise "You must install mercurial, there are two options:\n\n"+
+ " brew install pip && pip install mercurial\n"+
+ " easy_install mercurial\n\n"+
+ "Homebrew recommends pip over the OS X provided easy_install." \
+ unless system "/usr/bin/which hg"
+
ohai "Cloning #{@url}"
@clone=HOMEBREW_CACHE+@unique_token