aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/git-hg.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2012-01-22 18:40:29 -0800
committerAdam Vandenberg2012-01-22 18:40:29 -0800
commit83b720761d212cbf3e73cac7ca6bc505cb34eeb4 (patch)
treec1a33d930e781c1270fe8e19aa27ec19345454d3 /Library/Formula/git-hg.rb
parentfd2258dd3ee671d2d0271a96547943429e1bfaad (diff)
downloadhomebrew-83b720761d212cbf3e73cac7ca6bc505cb34eeb4.tar.bz2
git-hg: Add warning if Mercurial isn't found.
Diffstat (limited to 'Library/Formula/git-hg.rb')
-rw-r--r--Library/Formula/git-hg.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/git-hg.rb b/Library/Formula/git-hg.rb
index a8634fa79..ac2a4b6d9 100644
--- a/Library/Formula/git-hg.rb
+++ b/Library/Formula/git-hg.rb
@@ -5,6 +5,11 @@ class GitHg < Formula
homepage 'http://offbytwo.com/git-hg/'
def install
+ unless `/usr/bin/which hg`.size > 0
+ puts "You may need to install Mercurial before using this software:"
+ puts " brew install mercurial"
+ end
+
prefix.install Dir['*']
end
end