diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-18 09:30:11 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-18 09:30:11 +0000 |
commit | f9208d7c5c81d4c9fa6183bda475ae42babd75e1 (patch) | |
tree | 0cb7456dbbd531bff05587a16275103f8aa510c1 /app/models/repository | |
parent | cbe28d75d0001555a100cf35f23b25d76d12fcf4 (diff) | |
download | redmine-f9208d7c5c81d4c9fa6183bda475ae42babd75e1.tar.gz redmine-f9208d7c5c81d4c9fa6183bda475ae42babd75e1.zip |
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
Diffstat (limited to 'app/models/repository')
-rw-r--r-- | app/models/repository/bazaar.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/models/repository/bazaar.rb b/app/models/repository/bazaar.rb index db05e673b..6dcf963d9 100644 --- a/app/models/repository/bazaar.rb +++ b/app/models/repository/bazaar.rb @@ -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 |