From: Toshi MARUYAMA Date: Fri, 4 Mar 2011 13:39:00 +0000 (+0000) Subject: scm: mercurial: add path encoding select box at setting (#2664). X-Git-Tag: 1.2.0~829 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2aff1749ae12b654fbeb5535864a44639ab2d330;p=redmine.git scm: mercurial: add path encoding select box at setting (#2664). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5001 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/helpers/repositories_helper.rb b/app/helpers/repositories_helper.rb index 1ae13463d..593b292dd 100644 --- a/app/helpers/repositories_helper.rb +++ b/app/helpers/repositories_helper.rb @@ -208,10 +208,14 @@ module RepositoriesHelper end def mercurial_field_tags(form, repository) - content_tag('p', form.text_field(:url, :label => 'Root directory', + content_tag('p', form.text_field(:url, :label => 'Root directory', :size => 60, :required => true, :disabled => (repository && !repository.root_url.blank?)) + - '
local repository (e.g. /hgrepo, c:\hgrepo)' ) + '
local repository (e.g. /hgrepo, c:\hgrepo)' ) + + content_tag('p', form.select( + :path_encoding, [nil] + Setting::ENCODINGS, + :label => 'Path encoding') + + '
Default: UTF-8') end def git_field_tags(form, repository)