]> source.dussan.org Git - redmine.git/commitdiff
scm: mercurial: skip failing unit model tests on below Mercurial 1.5 (#9465)
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 24 Oct 2011 09:33:03 +0000 (09:33 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 24 Oct 2011 09:33:03 +0000 (09:33 +0000)
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

test/unit/repository_mercurial_test.rb

index 087fb49d7129d0a74212db6ea3a89cd43ea5e048..765094308652f8e0e2fae6e091db52b7198a8347 100644 (file)
@@ -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)