Stop supporting hg found in share/python

This commit is contained in:
Jack Nagel 2014-12-05 17:02:29 -05:00
parent 72c21fe991
commit ecba7b4e7e

View File

@ -621,12 +621,10 @@ class MercurialDownloadStrategy < VCSDownloadStrategy
def cache_tag; "hg" end
def hgpath
# Note: #{HOMEBREW_PREFIX}/share/python/hg is deprecated
@path ||= %W[
#{which("hg")}
#{HOMEBREW_PREFIX}/bin/hg
#{HOMEBREW_PREFIX}/opt/mercurial/bin/hg
#{HOMEBREW_PREFIX}/share/python/hg
].find { |p| File.executable? p }
end