aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/tasks/framework.rake
diff options
context:
space:
mode:
authorScott Barron <scott@elitists.net>2006-03-26 16:12:48 +0000
committerScott Barron <scott@elitists.net>2006-03-26 16:12:48 +0000
commitc954a5b9a031abd822770f4a084fb476cc2fef56 (patch)
tree6b8c3c952f01c64d802200ab306466dacd765461 /railties/lib/tasks/framework.rake
parent3bcb0b80b14d54144844ffaa97674e7ca820dd8f (diff)
downloadrails-c954a5b9a031abd822770f4a084fb476cc2fef56.tar.gz
rails-c954a5b9a031abd822770f4a084fb476cc2fef56.tar.bz2
rails-c954a5b9a031abd822770f4a084fb476cc2fef56.zip
When doing svn log -qr HEAD trunk/url, a log message with revision will 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
Diffstat (limited to 'railties/lib/tasks/framework.rake')
-rw-r--r--railties/lib/tasks/framework.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/tasks/framework.rake b/railties/lib/tasks/framework.rake
index ac612b8fb5..c837b73922 100644
--- a/railties/lib/tasks/framework.rake
+++ b/railties/lib/tasks/framework.rake
@@ -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