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:
parent
40a37b194d
commit
f319409abc
|
@ -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
|
||||
|
|
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue