##// END OF EJS Templates
scm: mercurial: add latest_changesets "default" branch test (#14361)...
Toshi MARUYAMA -
r12488:79e73095e5a4
parent child
Show More
@@ -288,6 +288,15 class RepositoryMercurialTest < ActiveSupport::TestCase
288 assert_equal %w|27|, changesets.collect(&:revision)
288 assert_equal %w|27|, changesets.collect(&:revision)
289 end
289 end
290
290
291 def test_latest_changesets_default_branch
292 assert_equal 0, @repository.changesets.count
293 @repository.fetch_changesets
294 @project.reload
295 assert_equal NUM_REV, @repository.changesets.count
296 changesets = @repository.latest_changesets('', 'default')
297 assert_equal %w|31 28 24 6 4 3 2 1 0|, changesets.collect(&:revision)
298 end
299
291 def test_copied_files
300 def test_copied_files
292 assert_equal 0, @repository.changesets.count
301 assert_equal 0, @repository.changesets.count
293 @repository.fetch_changesets
302 @repository.fetch_changesets
General Comments 0
You need to be logged in to leave comments. Login now