Project

General

Profile

Actions

Defect #3759

closed

Missing repository on some changesets

Defect #3759: Missing repository on some changesets

Added by Eric Davis about 17 years ago. Updated about 16 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
SCM
Target version:
-
Resolution:
Cant reproduce
Affected version:

Description

I'm not sure if this is caused by r2840 or not, but I've got a few changesets with the repository id of 0. When they are associated with an issue, a no method error occurs due to the "Associated Revisions" div. Deleting and rescanning the git repository still loaded the data incorrectly. I've reproduced this on r2845 with my data but I won't have time to debug it until later.

Exception

A ActionView::TemplateError occurred in issues#show:

  undefined method `project' for nil:NilClass
  On line #4 of app/views/issues/_changesets.rhtml

    1: <% changesets.each do |changeset| %>
    2:     <div class="changeset <%= cycle('odd', 'even') %>">
    3:     <p><%= link_to("#{l(:label_revision)} #{changeset.revision}",
    4:                 :controller => 'repositories', :action => 'revision', :id => changeset.project, :rev => changeset.revision) %><br />
    5:         <span class="author"><%= authoring(changeset.committed_on, changeset.author) %></span></p>
    6:     <%= textilizable(changeset, :comments) %>
    7:     </div>

    app/models/changeset.rb:58:in `project'
    app/views/issues/_changesets.rhtml:4

Data

>> c= Changeset.find(20693)
  Changeset Load (0.1ms)   SELECT * FROM `changesets` WHERE (`changesets`.`id` = 20693) 
=> #<Changeset id: 20693, repository_id: 0, revision: "e01fd4b76c1701b9d187f738b211bdfa4bf497f4", committer: "Eric Davis <edavis@...com>", committed_on: "2009-03-24 20:36:26", comments: "Added Hungarian translation from Gergő Jónás. #2...", commit_date: "2009-03-24", scmid: "e01fd4b76c1701b9d187f738b211bdfa4bf497f4", user_id: 1>

Updated by L Philbrook over 16 years ago Actions #1

seems to still be an issue r3279

Updated by L Philbrook over 16 years ago Actions #2

L Brook wrote:

seems to still be an issue r3279

Sorry it was not due to the problem above, but duplicate changesets. Sorry about that

Updated by Eric Davis about 16 years ago Actions #3

  • Status changed from 7 to Closed
  • Resolution set to Cant reproduce

Haven't seen this reoccur since I opened it. Might have been a data issue on my end.

Actions

Also available in: PDF Atom