MercurialDownloadStrategy: pull and update instead of update only

This commit is contained in:
Tuncer Ayaz authored and Adam Vandenberg committed 2010-06-10 12:57:20 -07:00
1 parent efa937452c
commit 281a08ec93
1 file changed
+4 -1
+4 -1
View File
@@ -302,7 +302,10 @@ class MercurialDownloadStrategy <AbstractDownloadStrategy
safe_system 'hg', 'clone', url, @clone
else
puts "Updating #{@clone}"
Dir.chdir(@clone) { safe_system 'hg', 'pull', '-u' }
Dir.chdir(@clone) do
safe_system 'hg', 'pull'
safe_system 'hg', 'update'
end
end
end