summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-06-15 15:47:28 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-06-15 15:47:28 +0000
commitca6e69ec247e10c521f22fba542404720cc2ebff (patch)
treed0f7633f5f0ee55e6c4b9e99397b3ae4d142a420 /app/controllers
parent93b3dba926ef9593c6849b2e84f57de176c595f1 (diff)
downloadredmine-ca6e69ec247e10c521f22fba542404720cc2ebff.tar.gz
redmine-ca6e69ec247e10c521f22fba542404720cc2ebff.zip
Fixed: view file at given revision with CVS.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1553 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/repositories_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb
index ef49cf248..c14449290 100644
--- a/app/controllers/repositories_controller.rb
+++ b/app/controllers/repositories_controller.rb
@@ -73,7 +73,7 @@ class RepositoriesController < ApplicationController
end
def changes
- @entry = @repository.scm.entry(@path, @rev)
+ @entry = @repository.entry(@path, @rev)
show_error_not_found and return unless @entry
@changesets = @repository.changesets_for_path(@path)
rescue Redmine::Scm::Adapters::CommandFailed => e
@@ -96,13 +96,13 @@ class RepositoriesController < ApplicationController
end
def entry
- @entry = @repository.scm.entry(@path, @rev)
+ @entry = @repository.entry(@path, @rev)
show_error_not_found and return unless @entry
# If the entry is a dir, show the browser
browse and return if @entry.is_dir?
- @content = @repository.scm.cat(@path, @rev)
+ @content = @repository.cat(@path, @rev)
show_error_not_found and return unless @content
if 'raw' == params[:format] || @content.is_binary_data?
# Force the download if it's a binary file