From eb789b147a60b33ff0e04b56e213c35b555b71ac Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 10 Dec 2011 11:55:02 +0000 Subject: scm: git: remove unused --since option (#4547, #4716, #7146, #6013) git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8156 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/scm/adapters/git_adapter.rb | 1 - test/unit/lib/redmine/scm/adapters/git_adapter_test.rb | 9 --------- 2 files changed, 10 deletions(-) diff --git a/lib/redmine/scm/adapters/git_adapter.rb b/lib/redmine/scm/adapters/git_adapter.rb index c0f190ad7..fcb73a363 100644 --- a/lib/redmine/scm/adapters/git_adapter.rb +++ b/lib/redmine/scm/adapters/git_adapter.rb @@ -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| diff --git a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb index c5da9732a..7499ac9f9 100644 --- a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb @@ -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| -- cgit v1.2.3