Commit 2fe311d0 authored by Toshi MARUYAMA's avatar Toshi MARUYAMA Committed by Eric Davis

scm: mercurial: add test of latest changesets support named branch in unit model test (#7246).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5128 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 43626232
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment