Revert "Mercurial - use post-fix if"

This reverts commit 6a8b3cc71feccbf73225bc7dc8c5e6972de9953d.

This was a bad merge on my part.

Fixes Homebrew/homebrew#221. Fixes Homebrew/homebrew#220.
This commit is contained in:
Max Howell 2009-12-19 14:10:18 +00:00
parent ac1d366fab
commit 3930361bb2

View File

@ -243,7 +243,7 @@ class MercurialDownloadStrategy <AbstractDownloadStrategy
url=@url.sub(%r[^hg://], '') url=@url.sub(%r[^hg://], '')
unless @clone.exist? unless @clone.exist?
safe_system 'hg', 'clone', *checkout_args safe_system 'hg', 'clone', url, @clone
else else
puts "Updating #{@clone}" puts "Updating #{@clone}"
Dir.chdir(@clone) { safe_system 'hg', 'update' } Dir.chdir(@clone) { safe_system 'hg', 'update' }