scm: mercurial: prepare test of wrapping revision of cat and annotate with URL encoding (#1981, #7246).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5113 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
bf6ec48bea
commit
5edc631791
|
@ -14,13 +14,20 @@ begin
|
|||
|
||||
if File.directory?(REPOSITORY_PATH)
|
||||
def setup
|
||||
@adapter = Redmine::Scm::Adapters::MercurialAdapter.new(REPOSITORY_PATH)
|
||||
@adapter = Redmine::Scm::Adapters::MercurialAdapter.new(
|
||||
REPOSITORY_PATH,
|
||||
nil,
|
||||
nil,
|
||||
nil,
|
||||
'ISO-8859-1')
|
||||
@diff_c_support = true
|
||||
|
||||
@char_1 = CHAR_1_HEX.dup
|
||||
@tag_char_1 = "tag-#{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)
|
||||
@char_1.force_encoding('UTF-8')
|
||||
@tag_char_1.force_encoding('UTF-8')
|
||||
@branch_char_0.force_encoding('UTF-8')
|
||||
@branch_char_1.force_encoding('UTF-8')
|
||||
|
|
Loading…
Reference in New Issue