]> source.dussan.org Git - redmine.git/commitdiff
scm: mercurial: add path encoding select box at setting (#2664).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 4 Mar 2011 13:39:00 +0000 (13:39 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 4 Mar 2011 13:39:00 +0000 (13:39 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5001 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/repositories_helper.rb

index 1ae13463d7db73f51f06fcbcfb5bd7b82c2bae0e..593b292dd94fc0b42bc390db2c8dfeab9360c587 100644 (file)
@@ -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?)) +
-                       '<br />local repository (e.g. /hgrepo, c:\hgrepo)' )
+                       '<br />local repository (e.g. /hgrepo, c:\hgrepo)' ) +
+    content_tag('p', form.select(
+                        :path_encoding, [nil] + Setting::ENCODINGS,
+                        :label => 'Path encoding') +
+                        '<br />Default: UTF-8')
   end
 
   def git_field_tags(form, repository)