Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix GH #40. Use `svn switch` rather than `svn update`

  • Loading branch information...
commit 4f40127ed22cf00c88511a5b86e1c2d0d8e0f32b 1 parent bec746e
Johannes Barre iGEL authored leehambley committed
2  lib/capistrano/recipes/deploy/scm/subversion.rb
View
@@ -27,7 +27,7 @@ def checkout(revision, destination)
# Returns the command that will do an "svn update" to the given
# revision, for the working copy at the given destination.
def sync(revision, destination)
- scm :update, arguments, arguments(:update), verbose, authentication, "-r#{revision}", destination
+ scm :switch, arguments, verbose, authentication, "-r#{revision}", repository, destination
end
# Returns the command that will do an "svn export" of the given revision
8 test/deploy/scm/subversion_test.rb
View
@@ -29,4 +29,12 @@ def test_query_revision
end
assert_equal 2095, revision
end
+
+ def test_sync
+ @config[:repository] = "http://svn.github.com/capistrano/capistrano.git"
+ rev = '602'
+ dest = "/var/www"
+ assert_equal "svn switch -q -r602 http://svn.github.com/capistrano/capistrano.git /var/www", @source.sync(rev, dest)
+ end
+
end
Please sign in to comment.
Something went wrong with that request. Please try again.