diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-12-02 20:58:02 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-12-02 20:58:02 +0000 |
commit | 8c65cc47122b802150bf3591cb4eba4f8c4fb4b4 (patch) | |
tree | 220613c121aa31f859cca016c04e7d3cc6fab320 /app/controllers/repositories_controller.rb | |
parent | e4724c7626a329cee82875a7e1bbec450eab4667 (diff) | |
download | redmine-8c65cc47122b802150bf3591cb4eba4f8c4fb4b4.tar.gz redmine-8c65cc47122b802150bf3591cb4eba4f8c4fb4b4.zip |
Added Annotate/Blame view for Subversion, CVS and Mercurial repositories.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@947 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/repositories_controller.rb')
-rw-r--r-- | app/controllers/repositories_controller.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index b332c7213..dfd5d0a6f 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -95,6 +95,11 @@ class RepositoriesController < ApplicationController end end + def annotate + @annotate = @repository.scm.annotate(@path, @rev) + show_error and return if @annotate.nil? || @annotate.empty? + end + def revision @changeset = @repository.changesets.find_by_revision(@rev) raise ChangesetNotFound unless @changeset |