summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-02-12 09:44:46 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-02-12 09:44:46 +0000
commit3493bb1d3709b7071548c11233b3ac5535f0d0c6 (patch)
treed8b54064aa89329dd4bf907a8045fe30bd909f61
parent4957f916399b133e0250d6c6211257657c914de5 (diff)
downloadredmine-3493bb1d3709b7071548c11233b3ac5535f0d0c6.tar.gz
redmine-3493bb1d3709b7071548c11233b3ac5535f0d0c6.zip
scm: space and tab cleanup of app/controllers/repositories_controller.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4817 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/controllers/repositories_controller.rb35
1 files changed, 18 insertions, 17 deletions
diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb
index 74d420e5a..de44f1d08 100644
--- a/app/controllers/repositories_controller.rb
+++ b/app/controllers/repositories_controller.rb
@@ -67,13 +67,13 @@ class RepositoriesController < ApplicationController
redirect_to :action => 'committers', :id => @project
end
end
-
+
def destroy
@repository.destroy
redirect_to :controller => 'projects', :action => 'settings', :id => @project, :tab => 'repository'
end
-
- def show
+
+ def show
@repository.fetch_changesets if Setting.autofetch_changesets? && @path.empty?
@entries = @repository.entries(@path, @rev)
@@ -88,7 +88,7 @@ class RepositoriesController < ApplicationController
end
alias_method :browse, :show
-
+
def changes
@entry = @repository.entry(@path, @rev)
(show_error_not_found; return) unless @entry
@@ -96,23 +96,23 @@ class RepositoriesController < ApplicationController
@properties = @repository.properties(@path, @rev)
@changeset = @repository.find_changeset_by_name(@rev)
end
-
+
def revisions
@changeset_count = @repository.changesets.count
@changeset_pages = Paginator.new self, @changeset_count,
- per_page_option,
- params['page']
+ per_page_option,
+ params['page']
@changesets = @repository.changesets.find(:all,
- :limit => @changeset_pages.items_per_page,
- :offset => @changeset_pages.current.offset,
- :include => [:user, :repository])
+ :limit => @changeset_pages.items_per_page,
+ :offset => @changeset_pages.current.offset,
+ :include => [:user, :repository])
respond_to do |format|
format.html { render :layout => false if request.xhr? }
format.atom { render_feed(@changesets, :title => "#{@project.name}: #{l(:label_revision_plural)}") }
end
end
-
+
def entry
@entry = @repository.entry(@path, @rev)
(show_error_not_found; return) unless @entry
@@ -122,7 +122,8 @@ class RepositoriesController < ApplicationController
@content = @repository.cat(@path, @rev)
(show_error_not_found; return) unless @content
- if 'raw' == params[:format] || @content.is_binary_data? || (@entry.size && @entry.size > Setting.file_max_size_displayed.to_i.kilobyte)
+ if 'raw' == params[:format] || @content.is_binary_data? ||
+ (@entry.size && @entry.size > Setting.file_max_size_displayed.to_i.kilobyte)
# Force the download
send_data @content, :filename => filename_for_content_disposition(@path.split('/').last)
else
@@ -135,7 +136,7 @@ class RepositoriesController < ApplicationController
def annotate
@entry = @repository.entry(@path, @rev)
(show_error_not_found; return) unless @entry
-
+
@annotate = @repository.scm.annotate(@path, @rev)
(render_error l(:error_scm_annotate); return) if @annotate.nil? || @annotate.empty?
@changeset = @repository.find_changeset_by_name(@rev)
@@ -153,7 +154,7 @@ class RepositoriesController < ApplicationController
rescue ChangesetNotFound
show_error_not_found
end
-
+
def diff
if params[:format] == 'diff'
@diff = @repository.diff(@path, @rev, @rev_to)
@@ -185,11 +186,11 @@ class RepositoriesController < ApplicationController
end
end
- def stats
+ def stats
end
-
+
def graph
- data = nil
+ data = nil
case params[:graph]
when "commits_per_month"
data = graph_commits_per_month(@repository)