Browse files

When doing svn log -qr HEAD trunk/url, a log message with revision wi…

…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

svn -qr HEAD log

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: 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 3bcb0b8 commit c954a5b9a031abd822770f4a084fb476cc2fef56 Scott Barron committed Mar 26, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/tasks/framework.rake
@@ -44,7 +44,7 @@ namespace :rails do
rails_svn = ''
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']}."

0 comments on commit c954a5b

Please sign in to comment.