diff --git a/app/views/repositories/revision.html.erb b/app/views/repositories/revision.html.erb index b9293d9d5..a5fe87246 100644 --- a/app/views/repositories/revision.html.erb +++ b/app/views/repositories/revision.html.erb @@ -94,4 +94,8 @@ <%= stylesheet_link_tag "scm" %> <% end %> -<% html_title("#{l(:label_revision)} #{format_revision(@changeset)}") -%> +<% + title = "#{l(:label_revision)} #{format_revision(@changeset)}" + title << " - #{truncate(@changeset.comments, :length => 80)}" + html_title(title) + -%> diff --git a/test/functional/repositories_mercurial_controller_test.rb b/test/functional/repositories_mercurial_controller_test.rb index 4b3263e18..fd9c17b58 100644 --- a/test/functional/repositories_mercurial_controller_test.rb +++ b/test/functional/repositories_mercurial_controller_test.rb @@ -485,7 +485,7 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase assert_response :success assert_template 'revision' assert_select 'title', - :text => 'Revision 1:9d5b5b004199 - eCookbook Subproject 1 - Redmine' + :text => 'Revision 1:9d5b5b004199 - Added 2 files and modified one. - eCookbook Subproject 1 - Redmine' end end end