scm: mercurial: skip failing unit model tests on below Mercurial 1.5 (#9465)
Tests of non ASCII nor alphabetic nor numeric *named branch* fails on below Mercurial 1.5. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7643 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
74cbbd38d0
commit
3a62c30f24
|
@ -167,8 +167,10 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
|
|||
assert_equal %w|4 3|, changesets.collect(&:revision)
|
||||
|
||||
# named branch
|
||||
changesets = @repository.latest_changesets('', @branch_char_1)
|
||||
assert_equal %w|27 26|, changesets.collect(&:revision)
|
||||
if @repository.scm.class.client_version_above?([1, 6])
|
||||
changesets = @repository.latest_changesets('', @branch_char_1)
|
||||
assert_equal %w|27 26|, changesets.collect(&:revision)
|
||||
end
|
||||
|
||||
changesets = @repository.latest_changesets("latin-1-dir/test-#{@char_1}-subdir", @branch_char_1)
|
||||
assert_equal %w|27|, changesets.collect(&:revision)
|
||||
|
|
Loading…
Reference in New Issue