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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user