Skip to content

Changes

Summary

  1. Fix jgit lock exception in egit staging view (details)
Commit bdc7f6379278815dc99fd396687f4a65285e8be2 by Simon Eder
Fix jgit lock exception in egit staging view

If a git repository is not linked to a Eclipse project the job locking
mechanism does not work in if files are added and removed to the index
at the same time.
The lock relies on Eclipse job scheduling rules.
Enhance the current implementation for the case that a git repository is
not present as Eclipse project.
Add 2 new test cases:
a) git repository is also a Eclipse project
b) git repository is not a Eclipse project

Bug: egit-10
Change-Id: Ia138bc3e6e5f8fef4d4884869db5cd69d5b6195a
The file was modified org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java
The file was modified org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/stagview/StagingViewTest.java
The file was addedorg.eclipse.egit.core/src/org/eclipse/egit/core/internal/job/RepositoryRule.java
The file was modified org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/stagview/AbstractStagingViewTestCase.java
The file was modified org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/StagingViewTester.java
The file was modified org.eclipse.egit.core/src/org/eclipse/egit/core/internal/job/RuleUtil.java