##// END OF EJS Templates
scm: mercurial: add test of latest changesets support named branch in unit model test (#7246)....
Toshi MARUYAMA -
r5008:6702b2651588
parent child
Show More
@@ -149,6 +149,13 class RepositoryMercurialTest < ActiveSupport::TestCase
149
149
150 changesets = @repository.latest_changesets('sources', 'tag_test.00', 2)
150 changesets = @repository.latest_changesets('sources', 'tag_test.00', 2)
151 assert_equal %w|4 3|, changesets.collect(&:revision)
151 assert_equal %w|4 3|, changesets.collect(&:revision)
152
153 # named branch
154 changesets = @repository.latest_changesets('', @branch_char_1)
155 assert_equal %w|27 26|, changesets.collect(&:revision)
156
157 changesets = @repository.latest_changesets("latin-1-dir/test-#{@char_1}-subdir", @branch_char_1)
158 assert_equal %w|27|, changesets.collect(&:revision)
152 end
159 end
153
160
154 def test_copied_files
161 def test_copied_files
General Comments 0
You need to be logged in to leave comments. Login now