diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-05-26 10:11:31 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-05-26 10:11:31 +0000 |
commit | adbe6af44a1605de73c094dfbad51300d0aa4601 (patch) | |
tree | 653e675f6516c4e566be2a26129267293796f1ad /app/models/repository/mercurial.rb | |
parent | dc9011467ae6ed530c94d0f86e4631c29994fdc7 (diff) | |
download | redmine-adbe6af44a1605de73c094dfbad51300d0aa4601.tar.gz redmine-adbe6af44a1605de73c094dfbad51300d0aa4601.zip |
scm: mercurial: use regexp %r{} instead of // in model latest_changesets_cond().
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5930 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/repository/mercurial.rb')
-rw-r--r-- | app/models/repository/mercurial.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/repository/mercurial.rb b/app/models/repository/mercurial.rb index 4c6fae23d..60948ce55 100644 --- a/app/models/repository/mercurial.rb +++ b/app/models/repository/mercurial.rb @@ -115,7 +115,7 @@ class Repository::Mercurial < Repository AND (#{Change.table_name}.path = ? OR #{Change.table_name}.path LIKE ? ESCAPE ?))" args << path.with_leading_slash - args << "#{path.with_leading_slash.gsub(/[%_\\]/) { |s| "\\#{s}" }}/%" << '\\' + args << "#{path.with_leading_slash.gsub(%r{[%_\\]}) { |s| "\\#{s}" }}/%" << '\\' end [cond.join(' AND '), *args] unless cond.empty? |