]> source.dussan.org Git - redmine.git/commitdiff
scm: mercurial: add test of latest changesets support named branch in unit model...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Mar 2011 13:41:28 +0000 (13:41 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Mar 2011 13:41:28 +0000 (13:41 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5128 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/repository_mercurial_test.rb

index 5609ceb723a7fe7e52a7b92f06debd0093dbb2da..660274d1c3da356ca3e7f66dd87e6e2703c3bd7a 100644 (file)
@@ -149,6 +149,13 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
       
       changesets = @repository.latest_changesets('sources', 'tag_test.00', 2)
       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)
+
+      changesets = @repository.latest_changesets("latin-1-dir/test-#{@char_1}-subdir", @branch_char_1)
+      assert_equal %w|27|, changesets.collect(&:revision)
     end
 
     def test_copied_files