Allow revisions on SVN checkouts.
This commit is contained in:
parent
3d36b01da3
commit
eafba2261f
@ -111,7 +111,16 @@ class SubversionDownloadStrategy <AbstractDownloadStrategy
|
|||||||
ohai "Checking out #{@url}"
|
ohai "Checking out #{@url}"
|
||||||
@co=HOMEBREW_CACHE+@unique_token
|
@co=HOMEBREW_CACHE+@unique_token
|
||||||
unless @co.exist?
|
unless @co.exist?
|
||||||
safe_system '/usr/bin/svn', 'checkout', @url, @co
|
checkout_args = ['/usr/bin/svn', 'checkout', @url]
|
||||||
|
|
||||||
|
if (@spec == :revision) and @ref
|
||||||
|
checkout_args << '-r'
|
||||||
|
checkout_args << @ref
|
||||||
|
end
|
||||||
|
|
||||||
|
checkout_args << @co
|
||||||
|
|
||||||
|
safe_system *checkout_args
|
||||||
else
|
else
|
||||||
# TODO svn up?
|
# TODO svn up?
|
||||||
puts "Repository already checked out"
|
puts "Repository already checked out"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user