From 33e6bbea16dd98655dca5e81f13b43d40258f23d Mon Sep 17 00:00:00 2001 From: Danil Tashkinov Date: Wed, 30 Oct 2013 19:39:16 +0400 Subject: [PATCH] increased length of format_changeset_identifier from 8 to 9 chars --- app/models/repository/undev_git.rb | 2 +- init.rb | 2 +- test/functional/repositories_undev_git_controller_test.rb | 2 +- test/unit/repository/undev_git_test.rb | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/models/repository/undev_git.rb b/app/models/repository/undev_git.rb index 70e0bf5..f93635b 100644 --- a/app/models/repository/undev_git.rb +++ b/app/models/repository/undev_git.rb @@ -59,7 +59,7 @@ def changeset_identifier(changeset) # Returns the readable identifier for the given git changeset def format_changeset_identifier(changeset) - changeset.revision[0, 8] + changeset.revision[0, 9] end end diff --git a/init.rb b/init.rb index 6376345..9f51fa2 100644 --- a/init.rb +++ b/init.rb @@ -14,7 +14,7 @@ description 'Git repository with remote repositories and hooks support' author 'Denis Diachkov, Vladimir Kiselev, Danil Tashkinov' author_url 'https://github.com/Undev' - version '0.2.7' + version '0.2.8' url 'https://github.com/Undev/redmine_undev_git' requires_redmine :version_or_higher => '2.1' diff --git a/test/functional/repositories_undev_git_controller_test.rb b/test/functional/repositories_undev_git_controller_test.rb index 23cf420..7be681a 100644 --- a/test/functional/repositories_undev_git_controller_test.rb +++ b/test/functional/repositories_undev_git_controller_test.rb @@ -340,7 +340,7 @@ def test_diff_two_revs assert_template 'diff' diff = assigns(:diff) assert_not_nil diff - assert_tag :tag => 'h2', :content => /2f9c0091:61b685fb/ + assert_tag :tag => 'h2', :content => /2f9c0091c:61b685fbe/ assert_tag :tag => "form", :attributes => { :action => "/projects/subproject1/repository/revisions/" + diff --git a/test/unit/repository/undev_git_test.rb b/test/unit/repository/undev_git_test.rb index 641de35..5c2d759 100644 --- a/test/unit/repository/undev_git_test.rb +++ b/test/unit/repository/undev_git_test.rb @@ -427,7 +427,7 @@ def test_format_identifier assert_equal NUM_REV, @repository.changesets.count c = @repository.changesets.find_by_revision( '7234cb2750b63f47bff735edc50a1c0a433c2518') - assert_equal '7234cb27', c.format_identifier + assert_equal '7234cb275', c.format_identifier end def test_activities @@ -436,7 +436,7 @@ def test_activities :revision => 'abc7234cb2750b63f47bff735edc50a1c0a433c2', :scmid => 'abc7234cb2750b63f47bff735edc50a1c0a433c2', :comments => 'test') - assert c.event_title.include?('abc7234c:') + assert c.event_title.include?('abc7234cb:') assert_equal 'abc7234cb2750b63f47bff735edc50a1c0a433c2', c.event_url[:rev] end