scm: bazaar: use log encoding as path encoding (#11834)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10420 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
cbe28d75d0
commit
f9208d7c5c
|
@ -37,7 +37,28 @@ class Repository::Bazaar < Repository
|
|||
'Bazaar'
|
||||
end
|
||||
|
||||
def entry(path=nil, identifier=nil)
|
||||
scm.bzr_path_encodig = log_encoding
|
||||
scm.entry(path, identifier)
|
||||
end
|
||||
|
||||
def cat(path, identifier=nil)
|
||||
scm.bzr_path_encodig = log_encoding
|
||||
scm.cat(path, identifier)
|
||||
end
|
||||
|
||||
def annotate(path, identifier=nil)
|
||||
scm.bzr_path_encodig = log_encoding
|
||||
scm.annotate(path, identifier)
|
||||
end
|
||||
|
||||
def diff(path, rev, rev_to)
|
||||
scm.bzr_path_encodig = log_encoding
|
||||
scm.diff(path, rev, rev_to)
|
||||
end
|
||||
|
||||
def entries(path=nil, identifier=nil)
|
||||
scm.bzr_path_encodig = log_encoding
|
||||
entries = scm.entries(path, identifier)
|
||||
if entries
|
||||
entries.each do |e|
|
||||
|
@ -68,6 +89,7 @@ class Repository::Bazaar < Repository
|
|||
end
|
||||
|
||||
def fetch_changesets
|
||||
scm.bzr_path_encodig = log_encoding
|
||||
scm_info = scm.info
|
||||
if scm_info
|
||||
# latest revision found in database
|
||||
|
|
|
@ -62,6 +62,10 @@ module Redmine
|
|||
super
|
||||
end
|
||||
|
||||
def bzr_path_encodig=(encoding)
|
||||
@path_encoding = encoding
|
||||
end
|
||||
|
||||
# Get info about the repository
|
||||
def info
|
||||
cmd_args = %w|revno|
|
||||
|
|
Loading…
Reference in New Issue