scm: mercurial: add latin-1 encoding directory to test repository (#2664).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5059 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2011-03-08 10:35:48 +00:00
parent e2adda86c2
commit d5b268129c
4 changed files with 18 additions and 14 deletions
@@ -18,9 +18,11 @@ begin
@diff_c_support = true
@tag_char_1 = "tag-#{CHAR_1_HEX}-00"
@branch_char_1 = "branch-#{CHAR_1_HEX}-00"
@branch_char_0 = "branch-#{CHAR_1_HEX}-00"
@branch_char_1 = "branch-#{CHAR_1_HEX}-01"
if @tag_char_1.respond_to?(:force_encoding)
@tag_char_1.force_encoding('UTF-8')
@branch_char_0.force_encoding('UTF-8')
@branch_char_1.force_encoding('UTF-8')
end
end
@@ -58,7 +60,7 @@ begin
adp = Redmine::Scm::Adapters::MercurialAdapter.new(repo)
repo_path = adp.info.root_url.gsub(/\\/, "/")
assert_equal REPOSITORY_PATH, repo_path
assert_equal '26', adp.info.lastrev.revision
assert_equal '28', adp.info.lastrev.revision
assert_equal '3ae45e2d177d',adp.info.lastrev.scmid
end
end
@@ -243,8 +245,9 @@ begin
def test_branches
assert_equal [
'default',
'branch (1)[2]&,%.-3_4',
@branch_char_1,
'branch (1)[2]&,%.-3_4',
@branch_char_0,
'test_branch.latin-1',
'test-branch-00',
], @adapter.branches
@@ -256,7 +259,8 @@ begin
'test_branch.latin-1' => 'c2ffe7da686a',
'branch (1)[2]&,%.-3_4' => 'afc61e85bde7',
'test-branch-00' => '3a330eb32958',
@branch_char_1 => 'c8d3e4887474',
@branch_char_0 => 'c8d3e4887474',
@branch_char_1 => '7bbf4c738e71',
}
assert_equal bm, @adapter.branchmap
end