diff options
author | Go MAEDA <maeda@farend.jp> | 2018-08-12 23:40:44 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2018-08-12 23:40:44 +0000 |
commit | b7f15fbadcaed2b708aa156048ab5c37cb7b01ff (patch) | |
tree | c87103a67f1cf7ec2c2ceb3aa441c5525493b8f8 /lib/redmine/scm/adapters/bazaar_adapter.rb | |
parent | 02191a08fdd2b4267167230525dfbe676d751ce9 (diff) | |
download | redmine-b7f15fbadcaed2b708aa156048ab5c37cb7b01ff.tar.gz redmine-b7f15fbadcaed2b708aa156048ab5c37cb7b01ff.zip |
Replace String#gsub with faster String#tr (#29363).
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@17469 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/scm/adapters/bazaar_adapter.rb')
-rw-r--r-- | lib/redmine/scm/adapters/bazaar_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/scm/adapters/bazaar_adapter.rb b/lib/redmine/scm/adapters/bazaar_adapter.rb index dc293d24c..30d8aa721 100644 --- a/lib/redmine/scm/adapters/bazaar_adapter.rb +++ b/lib/redmine/scm/adapters/bazaar_adapter.rb @@ -94,7 +94,7 @@ module Redmine cmd_args << "-r#{identifier.to_i}" cmd_args << bzr_target(path) scm_cmd(*cmd_args) do |io| - prefix_utf8 = "#{url}/#{path}".gsub('\\', '/') + prefix_utf8 = "#{url}/#{path}".tr('\\', '/') logger.debug "PREFIX: #{prefix_utf8}" prefix = scm_iconv(@path_encoding, 'UTF-8', prefix_utf8) prefix.force_encoding('ASCII-8BIT') |