Project

General

Profile

Actions

Defect #1774

closed

Repository/Activity change listing displays erroneous added files

Defect #1774: Repository/Activity change listing displays erroneous added files

Added by blink eye over 18 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Resolution:
Invalid
Affected version:

Description

Clicking on a git SHA1 value in Activity/Repository displays files, which have not been added with that commit (but during a commit way before). This issue is reproducable when cleaning up the cached history:

redmine_db=# delete from changesets;
redmine_db=# alter SEQUENCE changesets_id_seq RESTART 1;

Happens with git-core 1.5.6.3-1, postgresql-8.3.3-1, ruby-1.8.7.22 and redmine-devel-1725.

Updated by Jean-Philippe Lang over 18 years ago Actions #1

  • Status changed from New to Closed
  • Affected version (unused) deleted (devel)
  • Resolution set to Invalid

You get this problem after reseting changesets_id sequence because it's used as a foreign key in changes table (this table contains file changes).
So if you want to delete changesets table content, delete changes table content as well.

Updated by blink eye over 18 years ago Actions #2

thanks a lot for pointing that out. the correct way of resetting cached git entries seems to be:

redmine=# delete from changesets;
redmine=# alter SEQUENCE changesets_id_seq RESTART 1;
redmine=# delete from changes; 
redmine=# alter SEQUENCE changes_id_seq RESTART 1;

you may need to do that if you ever rebase or ammend your git history.

Actions

Also available in: PDF Atom