# File lib/capistrano/recipes/deploy/scm/subversion.rb, line 53
        def query_revision(revision)
          return revision if revision =~ /^\d+$/
          command = scm(:info, arguments, arguments(:info), repository, authentication, "-r#{revision}")
          result = yield(command)
          yaml = YAML.load(result)
          raise "tried to run `#{command}' and got unexpected result #{result.inspect}" unless Hash === yaml
          [ (yaml['Last Changed Rev'] || 0).to_i, (yaml['Revision'] || 0).to_i ].max
        end