@@ -323,12 +323,7 class RepositoryMercurialTest < ActiveSupport::TestCase | |||||
323 | assert_latest_changesets_default_branch |
|
323 | assert_latest_changesets_default_branch | |
324 | end |
|
324 | end | |
325 |
|
325 | |||
326 |
def |
|
326 | def assert_copied_files | |
327 | assert_equal 0, @repository.changesets.count |
|
|||
328 | @repository.fetch_changesets |
|
|||
329 | @project.reload |
|
|||
330 | assert_equal NUM_REV, @repository.changesets.count |
|
|||
331 |
|
||||
332 | cs1 = @repository.changesets.find_by_revision('13') |
|
327 | cs1 = @repository.changesets.find_by_revision('13') | |
333 | assert_not_nil cs1 |
|
328 | assert_not_nil cs1 | |
334 | c1 = cs1.filechanges.sort_by(&:path) |
|
329 | c1 = cs1.filechanges.sort_by(&:path) | |
@@ -360,6 +355,15 class RepositoryMercurialTest < ActiveSupport::TestCase | |||||
360 | assert_equal "/latin-1-dir/test-#{@char_1}.txt", c3[0].from_path |
|
355 | assert_equal "/latin-1-dir/test-#{@char_1}.txt", c3[0].from_path | |
361 | assert_equal '5d9891a1b425', c3[0].from_revision |
|
356 | assert_equal '5d9891a1b425', c3[0].from_revision | |
362 | end |
|
357 | end | |
|
358 | private :assert_copied_files | |||
|
359 | ||||
|
360 | def test_copied_files_short_id | |||
|
361 | assert_equal 0, @repository.changesets.count | |||
|
362 | @repository.fetch_changesets | |||
|
363 | @project.reload | |||
|
364 | assert_equal NUM_REV, @repository.changesets.count | |||
|
365 | assert_copied_files | |||
|
366 | end | |||
363 |
|
367 | |||
364 | def test_find_changeset_by_name |
|
368 | def test_find_changeset_by_name | |
365 | assert_equal 0, @repository.changesets.count |
|
369 | assert_equal 0, @repository.changesets.count |
General Comments 0
You need to be logged in to leave comments.
Login now