Skip to content

Commit

Permalink
When doing svn log -qr HEAD trunk/url, a log message with revision wi…
Browse files Browse the repository at this point in the history
…ll not

show if the last commit was not in the trunk/ path.

For example, changeset [4045] is for scriptaculous, so the command executed by
rails:freeze:edge:

svn -qr HEAD log http://dev.rubyonrails.org/svn/rails/trunk

Yields the following output:
------------------------------------------------------------------------

Causing the regex to bomb.

Change the command to use --limit 1 instead of HEAD, which will pick up the
last changeset against the trunk path.

Fixes #4356


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4046 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
Scott Barron committed Mar 26, 2006
1 parent 3bcb0b8 commit c954a5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/tasks/framework.rake
Expand Up @@ -44,7 +44,7 @@ namespace :rails do
rails_svn = 'http://dev.rubyonrails.org/svn/rails/trunk'

if ENV['REVISION'].nil?
ENV['REVISION'] = /^r(\d+)/.match(%x{svn -qr HEAD log #{rails_svn}})[1]
ENV['REVISION'] = /^r(\d+)/.match(%x{svn log -q --limit 1 #{rails_svn}})[1]
puts "REVISION not set. Using HEAD, which is revision #{ENV['REVISION']}."
end

Expand Down

0 comments on commit c954a5b

Please sign in to comment.