diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-10-28 01:44:12 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-10-28 01:44:12 +0000 |
commit | 476c3d54b7118fdc9bc0acb3b58de781ef15d614 (patch) | |
tree | 4537b9c1727469bf5f1335dd7079c71b00123691 /test/unit/repository_mercurial_test.rb | |
parent | 370de46974b9e0d64379f2a650a671e01b8d7a71 (diff) | |
download | redmine-476c3d54b7118fdc9bc0acb3b58de781ef15d614.tar.gz redmine-476c3d54b7118fdc9bc0acb3b58de781ef15d614.zip |
scm: mercurial: update test repository (#5501)
This test repository has one merged revision.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7662 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_mercurial_test.rb')
-rw-r--r-- | test/unit/repository_mercurial_test.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/unit/repository_mercurial_test.rb b/test/unit/repository_mercurial_test.rb index 402565ee9..f33640d11 100644 --- a/test/unit/repository_mercurial_test.rb +++ b/test/unit/repository_mercurial_test.rb @@ -21,7 +21,7 @@ class RepositoryMercurialTest < ActiveSupport::TestCase fixtures :projects REPOSITORY_PATH = Rails.root.join('tmp/test/mercurial_repository').to_s - NUM_REV = 29 + NUM_REV = 32 CHAR_1_HEX = "\xc3\x9c" if File.directory?(REPOSITORY_PATH) @@ -56,7 +56,7 @@ class RepositoryMercurialTest < ActiveSupport::TestCase @repository.fetch_changesets @project.reload assert_equal NUM_REV, @repository.changesets.count - assert_equal 37, @repository.changes.count + assert_equal 46, @repository.changes.count assert_equal "Initial import.\nThe repository contains 3 files.", @repository.changesets.find_by_revision('0').comments end @@ -109,19 +109,19 @@ class RepositoryMercurialTest < ActiveSupport::TestCase # with_limit changesets = @repository.latest_changesets('', nil, 2) - assert_equal %w|28 27|, changesets.collect(&:revision) + assert_equal %w|31 30|, changesets.collect(&:revision) # with_filepath changesets = @repository.latest_changesets( '/sql_escape/percent%dir/percent%file1.txt', nil) - assert_equal %w|11 10 9|, changesets.collect(&:revision) + assert_equal %w|30 11 10 9|, changesets.collect(&:revision) changesets = @repository.latest_changesets( '/sql_escape/underscore_dir/understrike_file.txt', nil) - assert_equal %w|12 9|, changesets.collect(&:revision) + assert_equal %w|30 12 9|, changesets.collect(&:revision) changesets = @repository.latest_changesets('README', nil) - assert_equal %w|28 17 8 6 1 0|, changesets.collect(&:revision) + assert_equal %w|31 30 28 17 8 6 1 0|, changesets.collect(&:revision) changesets = @repository.latest_changesets('README','8') assert_equal %w|8 6 1 0|, changesets.collect(&:revision) @@ -135,7 +135,7 @@ class RepositoryMercurialTest < ActiveSupport::TestCase path = 'sql_escape/percent%dir' changesets = @repository.latest_changesets(path, nil) - assert_equal %w|13 11 10 9|, changesets.collect(&:revision) + assert_equal %w|30 13 11 10 9|, changesets.collect(&:revision) changesets = @repository.latest_changesets(path, '11') assert_equal %w|11 10 9|, changesets.collect(&:revision) @@ -145,7 +145,7 @@ class RepositoryMercurialTest < ActiveSupport::TestCase path = 'sql_escape/underscore_dir' changesets = @repository.latest_changesets(path, nil) - assert_equal %w|13 12 9|, changesets.collect(&:revision) + assert_equal %w|30 13 12 9|, changesets.collect(&:revision) changesets = @repository.latest_changesets(path, '12') assert_equal %w|12 9|, changesets.collect(&:revision) @@ -312,7 +312,7 @@ class RepositoryMercurialTest < ActiveSupport::TestCase @repository.fetch_changesets @project.reload assert_equal NUM_REV, @repository.changesets.count - %w|28 3ae45e2d177d 3ae45|.each do |r1| + %w|31 31eeee7395c8 31eee|.each do |r1| changeset = @repository.find_changeset_by_name(r1) assert_nil changeset.next end |