@@ -197,7 +197,6 module Redmine | |||||
197 | from_to << "#{identifier_from}.." if identifier_from |
|
197 | from_to << "#{identifier_from}.." if identifier_from | |
198 | from_to << "#{identifier_to}" if identifier_to |
|
198 | from_to << "#{identifier_to}" if identifier_to | |
199 | cmd_args << from_to if !from_to.empty? |
|
199 | cmd_args << from_to if !from_to.empty? | |
200 | cmd_args << "--since=#{options[:since].strftime("%Y-%m-%d %H:%M:%S")}" if options[:since] |
|
|||
201 | cmd_args << "--" << scm_iconv(@path_encoding, 'UTF-8', path) if path && !path.empty? |
|
200 | cmd_args << "--" << scm_iconv(@path_encoding, 'UTF-8', path) if path && !path.empty? | |
202 |
|
201 | |||
203 | scm_cmd *cmd_args do |io| |
|
202 | scm_cmd *cmd_args do |io| |
@@ -102,15 +102,6 begin | |||||
102 | assert_equal '1ca7f5ed374f3cb31a93ae5215c2e25cc6ec5127', revs1[20].identifier |
|
102 | assert_equal '1ca7f5ed374f3cb31a93ae5215c2e25cc6ec5127', revs1[20].identifier | |
103 | end |
|
103 | end | |
104 |
|
104 | |||
105 | def test_revisions_reverse_with_time |
|
|||
106 | since2 = Time.gm(2010, 9, 30, 0, 0, 0) |
|
|||
107 | revs2 = @adapter.revisions('', nil, nil, |
|
|||
108 | {:all => true, :since => since2, :reverse => true}) |
|
|||
109 | assert_equal 6, revs2.length |
|
|||
110 | assert_equal '67e7792ce20ccae2e4bb73eed09bb397819c8834', revs2[0].identifier |
|
|||
111 | assert_equal '1ca7f5ed374f3cb31a93ae5215c2e25cc6ec5127', revs2[5].identifier |
|
|||
112 | end |
|
|||
113 |
|
||||
114 | def test_revisions_master_all |
|
105 | def test_revisions_master_all | |
115 | revs1 = [] |
|
106 | revs1 = [] | |
116 | @adapter.revisions('', nil, "master",{}) do |rev| |
|
107 | @adapter.revisions('', nil, "master",{}) do |rev| |
General Comments 0
You need to be logged in to leave comments.
Login now