Removed cloning a specific revision from the mercurial download strategy.

When cloning a mercurial repository from a tagged revision, that tag definition
isn't actually included. This causes `hg archive -r tag_name` to fail.

Instead, just clone the repository's head and the `hg archive -r revision` will
handle getting the correct revision to for the build
This commit is contained in:
Ben Cochran 2009-12-16 15:32:58 -06:00 committed by Max Howell
parent 64cdda87e0
commit edb046bea8

View File

@ -243,9 +243,6 @@ class MercurialDownloadStrategy <AbstractDownloadStrategy
unless @clone.exist?
checkout_args = []
if (@spec == :revision) and @ref
checkout_args << '-r' << @ref
end
checkout_args << url << @clone
safe_system 'hg', 'clone', *checkout_args
else