From 2aff1749ae12b654fbeb5535864a44639ab2d330 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 4 Mar 2011 13:39:00 +0000 Subject: [PATCH] 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 --- app/helpers/repositories_helper.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) -- 2.39.5