mirror of
https://github.com/redmine/redmine.git
synced 2025-11-13 16:56:00 +01:00
scm: git: update test repository for path encoding (#5251).
Mercurial and Git treats file names as byte string. This git test repository contains Latin-1 encoding path. Be careful on non Latin-1(CP1252) Windows. Please see r4996 comment. I removed a revision including "copied file" from r5026 test repository. Mercurial supports "copy", but Git does not support. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5033 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -28,11 +28,16 @@ begin
|
||||
end
|
||||
|
||||
def test_branches
|
||||
assert_equal @adapter.branches, ['master', 'test-latin-1', 'test_branch']
|
||||
assert_equal [
|
||||
'latin-1-path-encoding',
|
||||
'master',
|
||||
'test-latin-1',
|
||||
'test_branch',
|
||||
], @adapter.branches
|
||||
end
|
||||
|
||||
def test_getting_all_revisions
|
||||
assert_equal 16, @adapter.revisions('',nil,nil,:all => true).length
|
||||
assert_equal 20, @adapter.revisions('',nil,nil,:all => true).length
|
||||
end
|
||||
|
||||
def test_getting_certain_revisions
|
||||
|
||||
Reference in New Issue
Block a user