equal
deleted
inserted
replaced
218 |
218 |
219 end |
219 end |
220 |
220 |
221 def self._checkout_svn(repository, directory, branch, root, *params) |
221 def self._checkout_svn(repository, directory, branch, root, *params) |
222 url = "#{repository}/#{directory}/#{branch}" |
222 url = "#{repository}/#{directory}/#{branch}" |
223 cmd = %W{svn --non-interactive --trust-server-cert co #{url} #{root / directory}} |
223 cmd = %W{svn --non-interactive --trust-server-cert co #{url} #{directory}} |
224 info "executing cmd: '#{cmd}'" |
224 info "executing cmd: '#{cmd}'" |
225 Rake::FileUtilsExt::when_writing(cmd) do |
225 FileUtils.chdir root do |
226 if (not system(*cmd)) |
226 Rake::FileUtilsExt::when_writing(cmd) do |
227 raise CheckoutException.new("SVN: Cannot checkout from #{url}") |
227 if (not system(*cmd)) |
|
228 raise CheckoutException.new("SVN: Cannot checkout from #{url}") |
|
229 end |
228 end |
230 end |
229 end |
231 end |
230 end |
232 end |
231 |
233 |
232 def self._checkout_hg_impl(repository, package, directory, branch, root, *params) |
234 def self._checkout_hg_impl(repository, package, directory, branch, root, *params) |