Defect #37718 ยป 0001-Subversion-adapter-cannot-handle-filenames-containin.patch
| lib/redmine/scm/adapters/subversion_adapter.rb | ||
|---|---|---|
| 115 | 115 |
entries << |
| 116 | 116 |
Entry.new( |
| 117 | 117 |
{
|
| 118 |
:name => CGI.unescape(name),
|
|
| 118 |
:name => Addressable::URI.unescape(name),
|
|
| 119 | 119 |
:path => ((path.empty? ? "" : "#{path}/") + name),
|
| 120 | 120 |
:kind => entry['kind'], |
| 121 | 121 |
:size => ((s = entry['size']) ? s['__content__'].to_i : nil), |
| test/functional/repositories_subversion_controller_test.rb | ||
|---|---|---|
| 27 | 27 |
:issue_categories, :enumerations, :custom_fields, :custom_values, :trackers |
| 28 | 28 | |
| 29 | 29 |
PRJ_ID = 3 |
| 30 |
NUM_REV = 13
|
|
| 30 |
NUM_REV = 14
|
|
| 31 | 31 | |
| 32 | 32 |
def setup |
| 33 | 33 |
super |
| ... | ... | |
| 121 | 121 |
assert_response :success |
| 122 | 122 | |
| 123 | 123 |
assert_select 'table.entries tbody' do |
| 124 |
assert_select 'tr', 5
|
|
| 124 |
assert_select 'tr', 6
|
|
| 125 | 125 |
assert_select 'tr.dir td.filename a', :text => '[folder_with_brackets]' |
| 126 | 126 |
assert_select 'tr.dir td.filename a', :text => 'folder' |
| 127 |
assert_select 'tr.file td.filename a', :text => '+.md' |
|
| 127 | 128 |
assert_select 'tr.file td.filename a', :text => '.project' |
| 128 | 129 |
assert_select 'tr.file td.filename a', :text => 'helloworld.c' |
| 129 | 130 |
assert_select 'tr.file td.filename a', :text => 'textfile.txt' |
| test/unit/repository_subversion_test.rb | ||
|---|---|---|
| 24 | 24 | |
| 25 | 25 |
include Redmine::I18n |
| 26 | 26 | |
| 27 |
NUM_REV = 13
|
|
| 27 |
NUM_REV = 14
|
|
| 28 | 28 | |
| 29 | 29 |
def setup |
| 30 | 30 |
User.current = nil |
| ... | ... | |
| 100 | 100 |
@project.reload |
| 101 | 101 | |
| 102 | 102 |
assert_equal NUM_REV, @repository.changesets.count |
| 103 |
assert_equal 23, @repository.filechanges.count
|
|
| 103 |
assert_equal 24, @repository.filechanges.count
|
|
| 104 | 104 |
assert_equal 'Initial import.', @repository.changesets.find_by_revision('1').comments
|
| 105 | 105 |
end |
| 106 | 106 | |