List the options that the user has for installing Mercurial

Fixes Homebrew/homebrew#136
This commit is contained in:
Max Howell 2009-12-02 13:21:34 +00:00
parent b70367fa96
commit 277239a4dd

View File

@ -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