On a fresh checkout project, if I first rename a versioned file and then change the content for that file using the Editor window, the repository goes into an inconsistent state, as for example, the "Revert" action triggered on the root node (project node) will show no changes in the Revert window, even if there are changes on other files. I have to undo the content changes on the renamed file in order to make the Revert action usable again;
>> From Emilian
It's a JGIT bug in ContentSource : 307
GitRevertDialog$3.error
org.eclipse.jgit.errors.MissingObjectException: •Missing blob def2fb8262c1d6c65c5f9b71810abaa8efbaddc3
at org.eclipse.jgit.storage.file.WindowCursor.getObjectSize(WindowCursor.java:140)
at org.eclipse.jgit.diff.ContentSource$ObjectReaderSource.size(ContentSource.java:141)
at org.eclipse.jgit.diff.ContentSource$Pair.size(ContentSource.java:306)
at org.eclipse.jgit.diff.SimilarityRenameDetector.size(SimilarityRenameDetector.java:378)
at org.eclipse.jgit.diff.SimilarityRenameDetector.buildMatrix(SimilarityRenameDetector.java:262)
at org.eclipse.jgit.diff.SimilarityRenameDetector.compute(SimilarityRenameDetector.java:138)
at org.eclipse.jgit.diff.RenameDetector.findContentRenames(RenameDetector.java:482)
at org.eclipse.jgit.diff.RenameDetector.compute(RenameDetector.java:368)
at org.eclipse.jgit.diff.RenameDetector.compute(RenameDetector.java:338)
at org.eclipse.jgit.diff.RenameDetector.compute(RenameDetector.java:315)
at org.eclipse.jgit.diff.RenameDetector.compute(RenameDetector.java:298)
at com.common.vcontrol.git.GitCollector.computeWithRenameDetection(GitCollector.java:62)
at com.common.vcontrol.git.GitRevertDialog.collectForRevert(GitRevertDialog.java:131)
at com.common.vcontrol.git.GitRevertDialog$3.process(GitRevertDialog.java:68)
at com.common.ui.util.BackgroundThread.run(BackgroundThread.java:74)
I am going to ignore this exception and return 0 (this way the Revert code works). Hope I won't clobber this change when merging a future JGIT version.
Issue #6021 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build 10.0.0-rc-11_04 |
No time estimate |
It's a JGIT bug in ContentSource : 307
GitRevertDialog$3.error
org.eclipse.jgit.errors.MissingObjectException: •Missing blob def2fb8262c1d6c65c5f9b71810abaa8efbaddc3
at org.eclipse.jgit.storage.file.WindowCursor.getObjectSize(WindowCursor.java:140)
at org.eclipse.jgit.diff.ContentSource$ObjectReaderSource.size(ContentSource.java:141)
at org.eclipse.jgit.diff.ContentSource$Pair.size(ContentSource.java:306)
at org.eclipse.jgit.diff.SimilarityRenameDetector.size(SimilarityRenameDetector.java:378)
at org.eclipse.jgit.diff.SimilarityRenameDetector.buildMatrix(SimilarityRenameDetector.java:262)
at org.eclipse.jgit.diff.SimilarityRenameDetector.compute(SimilarityRenameDetector.java:138)
at org.eclipse.jgit.diff.RenameDetector.findContentRenames(RenameDetector.java:482)
at org.eclipse.jgit.diff.RenameDetector.compute(RenameDetector.java:368)
at org.eclipse.jgit.diff.RenameDetector.compute(RenameDetector.java:338)
at org.eclipse.jgit.diff.RenameDetector.compute(RenameDetector.java:315)
at org.eclipse.jgit.diff.RenameDetector.compute(RenameDetector.java:298)
at com.common.vcontrol.git.GitCollector.computeWithRenameDetection(GitCollector.java:62)
at com.common.vcontrol.git.GitRevertDialog.collectForRevert(GitRevertDialog.java:131)
at com.common.vcontrol.git.GitRevertDialog$3.process(GitRevertDialog.java:68)
at com.common.ui.util.BackgroundThread.run(BackgroundThread.java:74)
I am going to ignore this exception and return 0 (this way the Revert code works). Hope I won't clobber this change when merging a future JGIT version.