From 1236e037f229e406a681f0207ea3f5534133d6c4 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 22 Feb 2011 08:05:29 +0000 Subject: [PATCH] scm: mercurial: override initialize() for path encoding (#2664). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4919 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/scm/adapters/mercurial_adapter.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/redmine/scm/adapters/mercurial_adapter.rb b/lib/redmine/scm/adapters/mercurial_adapter.rb index 9d29caefa..5bcb33ea5 100644 --- a/lib/redmine/scm/adapters/mercurial_adapter.rb +++ b/lib/redmine/scm/adapters/mercurial_adapter.rb @@ -78,6 +78,11 @@ module Redmine end end + def initialize(url, root_url=nil, login=nil, password=nil) + super + @path_encoding = 'UTF-8' + end + def info tip = summary['repository']['tip'] Info.new(:root_url => CGI.unescape(summary['repository']['root']), -- 2.39.5