From: Toshi MARUYAMA Date: Sat, 21 May 2011 02:38:04 +0000 (+0000) Subject: scm: mercurial: override "path_encoding" method in adapter (#2664). X-Git-Tag: 1.2.0~25 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a1e3cf82181962313f076023f8ad2a57e22bda6c;p=redmine.git scm: mercurial: override "path_encoding" method in adapter (#2664). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5868 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/redmine/scm/adapters/mercurial_adapter.rb b/lib/redmine/scm/adapters/mercurial_adapter.rb index db0434263..d02ed78b0 100644 --- a/lib/redmine/scm/adapters/mercurial_adapter.rb +++ b/lib/redmine/scm/adapters/mercurial_adapter.rb @@ -86,6 +86,10 @@ module Redmine @path_encoding = path_encoding.blank? ? 'UTF-8' : path_encoding end + def path_encoding + @path_encoding + end + def info tip = summary['repository']['tip'] Info.new(:root_url => CGI.unescape(summary['repository']['root']),