Commit 195d3731 authored by tmaruyama's avatar tmaruyama

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

git-svn-id: https://svn.redmine.org/redmine/trunk@8813 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 238ef9ff
......@@ -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|
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment