Commit b5b70d69 authored by tmaruyama's avatar tmaruyama

scm: git: remove unused --since option (#4547, #4716, #7146, #6013)

git-svn-id: https://svn.redmine.org/redmine/trunk@8156 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent f09ddde4
......@@ -197,7 +197,6 @@ module Redmine
from_to << "#{identifier_from}.." if identifier_from
from_to << "#{identifier_to}" if identifier_to
cmd_args << from_to if !from_to.empty?
cmd_args << "--since=#{options[:since].strftime("%Y-%m-%d %H:%M:%S")}" if options[:since]
cmd_args << "--" << scm_iconv(@path_encoding, 'UTF-8', path) if path && !path.empty?
scm_cmd *cmd_args do |io|
......
......@@ -102,15 +102,6 @@ begin
assert_equal '1ca7f5ed374f3cb31a93ae5215c2e25cc6ec5127', revs1[20].identifier
end
def test_revisions_reverse_with_time
since2 = Time.gm(2010, 9, 30, 0, 0, 0)
revs2 = @adapter.revisions('', nil, nil,
{:all => true, :since => since2, :reverse => true})
assert_equal 6, revs2.length
assert_equal '67e7792ce20ccae2e4bb73eed09bb397819c8834', revs2[0].identifier
assert_equal '1ca7f5ed374f3cb31a93ae5215c2e25cc6ec5127', revs2[5].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