Mercurial - use post-fix if

This commit is contained in:
Adam Vandenberg 2009-11-22 21:30:30 -08:00 committed by Max Howell
parent a4ed7ff619
commit 6435413656

View File

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