From 277239a4ddf54c67c9feabf8303125c52b7d9053 Mon Sep 17 00:00:00 2001 From: Max Howell <max@methylblue.com> Date: Wed, 2 Dec 2009 13:21:34 +0000 Subject: [PATCH] List the options that the user has for installing Mercurial Fixes Homebrew/homebrew#136 --- Library/Homebrew/download_strategy.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index f69c9f57c0..a66348f8cc 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 -- GitLab