MercurialDownloadStrategy: check out subrepos

Closes Homebrew/homebrew#13495.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Felipe Navarro V 2012-07-19 10:30:38 -04:00 committed by Jack Nagel
parent 6542b22677
commit 9ec231bcb7

View File

@ -487,10 +487,10 @@ class MercurialDownloadStrategy < AbstractDownloadStrategy
if @spec and @ref if @spec and @ref
ohai "Checking out #{@spec} #{@ref}" ohai "Checking out #{@spec} #{@ref}"
Dir.chdir @clone do Dir.chdir @clone do
safe_system 'hg', 'archive', '-y', '-r', @ref, '-t', 'files', dst safe_system 'hg', 'archive', '--subrepos', '-y', '-r', @ref, '-t', 'files', dst
end end
else else
safe_system 'hg', 'archive', '-y', '-t', 'files', dst safe_system 'hg', 'archive', '--subrepos', '-y', '-t', 'files', dst
end end
end end
end end