Skip to content

Commit

Permalink
increased length of format_changeset_identifier from 8 to 9 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
nodecarter committed Oct 30, 2013
1 parent a04ee01 commit 33e6bbe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/models/repository/undev_git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion test/functional/repositories_undev_git_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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/" +
Expand Down
4 changes: 2 additions & 2 deletions test/unit/repository/undev_git_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 33e6bbe

Please sign in to comment.