From 1f58b94bd8c3c0829a676d75e00f7e206ece715a Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 18 Sep 2012 10:10:29 +0000 Subject: [PATCH] scm: bazaar: do not call super initialize method at adapter (#11834) On Bazaar 2.0.5, in case of using non ASCII *repository* path, following trace raise on all operation.
Traceback (most recent call last):
  File "/usr/bin/bzr", line 142, in 
    exit_val = bzrlib.commands.main()
  File "/usr/lib/python2.6/site-packages/bzrlib/commands.py", line 1102, in main
    argv = osutils.get_unicode_argv()
  File "/usr/lib/python2.6/site-packages/bzrlib/osutils.py", line 90, in get_unicode_argv
    "encoding." % a))
bzrlib.errors.BzrError:
 Parameter ''/somewhere/\xe3\x83\x90\xe3\x82\xb6\xe3\x83\xbc/non_ascii/''
 is unsupported by the current encoding.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10422 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/scm/adapters/bazaar_adapter.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/redmine/scm/adapters/bazaar_adapter.rb b/lib/redmine/scm/adapters/bazaar_adapter.rb index b2413f549..64a62dd42 100644 --- a/lib/redmine/scm/adapters/bazaar_adapter.rb +++ b/lib/redmine/scm/adapters/bazaar_adapter.rb @@ -58,8 +58,10 @@ module Redmine end def initialize(url, root_url=nil, login=nil, password=nil, path_encoding=nil) + @url = url + @root_url = url @path_encoding = 'UTF-8' - super + # do not call *super* for non ASCII repository path end def bzr_path_encodig=(encoding)