Skip to content

Commit

Permalink
Prefer 'Last Changed Rev' over 'Revision' when querying latest revisi…
Browse files Browse the repository at this point in the history
…on via Subversion

git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@7860 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
jamis committed Oct 13, 2007
1 parent fa1afed commit 2cc38ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG
@@ -1,5 +1,7 @@
*SVN*

* Prefer 'Last Changed Rev' over 'Revision' when querying latest revision via Subversion [Jamis Buck]

* Explicitly require 'stringio' in copy_test [mislav]

* When Subversion#query_revision fails, give a more sane error [Jamis Buck]
Expand Down
2 changes: 1 addition & 1 deletion lib/capistrano/recipes/deploy/scm/subversion.rb
Expand Up @@ -56,7 +56,7 @@ def query_revision(revision)
result = yield(command)
yaml = YAML.load(result)
raise "tried to run `#{command}' and got unexpected result #{result.inspect}" unless Hash === yaml
yaml['Revision']
yaml['Last Changed Rev'] || yaml['Revision']
end

# Determines what the response should be for a particular bit of text
Expand Down

0 comments on commit 2cc38ad

Please sign in to comment.