scm: git: remove unused "--all" option of "git log" in lib revisions method

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8813 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-02-08 03:18:20 +00:00
parent 40a37b194d
commit f319409abc
2 changed files with 0 additions and 12 deletions

View File

@ -191,7 +191,6 @@ module Redmine
revs = Revisions.new
cmd_args = %w|log --no-color --encoding=UTF-8 --raw --date=iso --pretty=fuller --parents|
cmd_args << "--reverse" if options[:reverse]
cmd_args << "--all" if options[:all]
cmd_args << "-n" << "#{options[:limit].to_i}" if options[:limit]
from_to = ""
from_to << "#{identifier_from}.." if identifier_from

View File

@ -87,17 +87,6 @@ begin
], @adapter.tags
end
def test_getting_all_revisions
assert_equal 21, @adapter.revisions('',nil,nil,:all => true).length
end
def test_revisions_reverse
revs1 = @adapter.revisions('',nil,nil,{:all => true, :reverse => true })
assert_equal 21, revs1.length
assert_equal '7234cb2750b63f47bff735edc50a1c0a433c2518', revs1[0].identifier
assert_equal '1ca7f5ed374f3cb31a93ae5215c2e25cc6ec5127', revs1[20].identifier
end
def test_revisions_master_all
revs1 = []
@adapter.revisions('', nil, "master",{}) do |rev|