scm: mercurial: annotate accepts both of revision number and changeset id (#3724).

Change annotate revision label to Mercurial style '4:def6d2f1254a'
and use identifier.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4663 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2011-01-09 01:30:18 +00:00
parent 5207211b6d
commit ef28bf6d88
3 changed files with 29 additions and 9 deletions
@@ -134,7 +134,7 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
:attributes => { :class => /diff_out/ },
:content => /def remove/ }
end
def test_annotate
get :annotate, :id => 3, :path => ['sources', 'watchers_controller.rb']
assert_response :success
@@ -147,8 +147,7 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
{
:tag => 'td',
:attributes => { :class => 'revision' },
:child => { :tag => 'a', :content => '4' }
# :child => { :tag => 'a', :content => /4:def6d2f1/ }
:child => { :tag => 'a', :content => '4:def6d2f1254a' }
}
assert_tag :tag => 'th',
:content => '23',