Project

General

Profile

Actions

Defect #1437

closed

activity view displays no commits of the git repository

Added by Frank Mertens over 17 years ago. Updated over 17 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
2008-06-12
Due date:
% Done:

0%

Estimated time:
Resolution:
Wont fix
Affected version:

Description

I have to click on "Repository" and then go back to "Activity" to observe the
current changes on the repository. The ease of tracking changes on the code
base was one of the feature I liked most with trac.

My project under redmine:
http://dev.cyblogic.com/projects/show/libpona

Actions #1

Updated by Frank Mertens over 17 years ago

I use git for my code repository. Until now I make a small hack to the source code to make it works without clicking "Repository" first.
I copy some code from "repository/show" into "projects/activity" between the line

if @scope.include?('changesets') ... end
.

begin
  @project = Project.find(params[:id])
  @repository = @project.repository
  @repository.fetch_changesets if Setting.autofetch_changesets?
  @changesets = @repository.changesets.find(:all, :limit => 10, :order => "committed_on DESC")
  show_error_not_found unless @changesets.any? #unless @entries || @changesets.any?
rescue Redmine::Scm::Adapters::CommandFailed => e
  show_error_command_failed(e.message)
end
...
private
...
  def show_error_not_found
    render_error l(:error_scm_not_found)
  end

  def show_error_command_failed(msg)
    render_error l(:error_scm_command_failed, msg)
  end 

But it really need to be worked in another way. Maybe with some backgroud process like BackgrounDRb to fetch the git log pro 10 sec. It is useful for team works ...

Actions #2

Updated by Jean-Philippe Lang over 17 years ago

  • Status changed from New to Closed
  • Target version deleted (0.7.1)
  • Resolution set to Wont fix

The solution is to fetch the changesets in the background: http://www.redmine.org/wiki/redmine/FAQ#13

Actions

Also available in: Atom PDF