Removes --find-copies-harder git option to retrieve commits which was way to slow (#4547).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3468 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
4878d749f4
commit
87bc092d7c
|
@ -114,7 +114,7 @@ module Redmine
|
||||||
def revisions(path, identifier_from, identifier_to, options={})
|
def revisions(path, identifier_from, identifier_to, options={})
|
||||||
revisions = Revisions.new
|
revisions = Revisions.new
|
||||||
|
|
||||||
cmd = "#{GIT_BIN} --git-dir #{target('')} log --find-copies-harder --raw --date=iso --pretty=fuller"
|
cmd = "#{GIT_BIN} --git-dir #{target('')} log --raw --date=iso --pretty=fuller"
|
||||||
cmd << " --reverse" if options[:reverse]
|
cmd << " --reverse" if options[:reverse]
|
||||||
cmd << " --all" if options[:all]
|
cmd << " --all" if options[:all]
|
||||||
cmd << " -n #{options[:limit]} " if options[:limit]
|
cmd << " -n #{options[:limit]} " if options[:limit]
|
||||||
|
|
|
@ -35,7 +35,7 @@ class RepositoryGitTest < ActiveSupport::TestCase
|
||||||
@repository.reload
|
@repository.reload
|
||||||
|
|
||||||
assert_equal 12, @repository.changesets.count
|
assert_equal 12, @repository.changesets.count
|
||||||
assert_equal 20, @repository.changes.count
|
assert_equal 21, @repository.changes.count
|
||||||
|
|
||||||
commit = @repository.changesets.find(:first, :order => 'committed_on ASC')
|
commit = @repository.changesets.find(:first, :order => 'committed_on ASC')
|
||||||
assert_equal "Initial import.\nThe repository contains 3 files.", commit.comments
|
assert_equal "Initial import.\nThe repository contains 3 files.", commit.comments
|
||||||
|
|
Loading…
Reference in New Issue