mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Prefer 'Last Changed Rev' over 'Revision' when querying latest revision via Subversion
git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@7860 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
bf3423ae33
commit
8053eaae0d
2 changed files with 3 additions and 1 deletions
|
@ -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]
|
||||
|
|
|
@ -56,7 +56,7 @@ module Capistrano
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue