summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_mercurial_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-09-01 05:16:38 +0000
committerGo MAEDA <maeda@farend.jp>2022-09-01 05:16:38 +0000
commit6755063664241d02043eb8c12a97c1377cd72e11 (patch)
tree5c15e1a317dc6d3b5705b87454f990ab3bd50974 /test/unit/repository_mercurial_test.rb
parent45fafc7e44db200329fb564dea71042524fc6822 (diff)
downloadredmine-6755063664241d02043eb8c12a97c1377cd72e11.tar.gz
redmine-6755063664241d02043eb8c12a97c1377cd72e11.zip
Support revision without any message in Mercurial repositories (#36258).
Patch by salman mp and Yuichi HARADA. git-svn-id: https://svn.redmine.org/redmine/trunk@21792 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_mercurial_test.rb')
-rw-r--r--test/unit/repository_mercurial_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/repository_mercurial_test.rb b/test/unit/repository_mercurial_test.rb
index 622ee5b69..d383394bd 100644
--- a/test/unit/repository_mercurial_test.rb
+++ b/test/unit/repository_mercurial_test.rb
@@ -25,7 +25,7 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
include Redmine::I18n
REPOSITORY_PATH = Rails.root.join('tmp/test/mercurial_repository').to_s
- NUM_REV = 40
+ NUM_REV = 43
def setup
User.current = nil
@@ -170,7 +170,7 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
@repository.fetch_changesets
@project.reload
assert_equal NUM_REV, @repository.changesets.count
- assert_equal 51, @repository.filechanges.count
+ assert_equal 53, @repository.filechanges.count
rev0 = @repository.changesets.find_by_revision('0')
assert_equal "Initial import.\nThe repository contains 3 files.",
rev0.comments
@@ -597,7 +597,7 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
@repository.fetch_changesets
@project.reload
assert_equal NUM_REV, @repository.changesets.count
- [(NUM_REV - 1).to_s, "04aed9840e92", "04aed"].each do |r1|
+ [(NUM_REV - 1).to_s, "ba20ebce08db", "ba20e"].each do |r1|
changeset = @repository.find_changeset_by_name(r1)
assert_nil changeset.next
end