Project set import: Check configured repositories

Don't clone a repository which is already configured in the workspace.
This also refactors the run method for a better flow.

Bug: 358140
Change-Id: I99f7cd610d069d4ae9429c2ff8b756ebdddc1a60
Properly release of RevWalk after use

Change-Id: I8ec5e098ca7517e6de10bc9db64a7cddccfeb02a
Enable Show In > Git Repositories for non-workspace files

By adding an IPath to the selection when the corresponding resource does
not exist in the workspace, we can show them at least in the Git
Repositories view (though not in Navigator).

For this to work in the Staging view, it depends on change
Ifdda37fc51a0cb29145e1c29b09d45317fc068ea so that StagingEntry#getFile()
returns null for non-workspace files.

Bug: 363567
Change-Id: Icf74705ac1b71d71b2052973c177e093f914cdba
Mark org.eclipse.egit.core bundle to provide project set feature

In order to not prevent upgrade from egit 2.1 when the psf feature was
installed we mark the org.eclipse.egit.core bundle to provision this
feature using p2 instructions.

With this change I was able to upgrade STS 3.1.0 from egit 2.1 to a
local 2.2-SNAPSHOT build which was reported [1] to not work without this
patch.

[1] http://dev.eclipse.org/mhonarc/lists/egit-dev/msg02925.html

Bug: 395031
Change-Id: I0a5f3dc309a79b648ed19fbd37e45e111e36e6d7
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Merge "Properly release of RevWalk after use"
Merge "Project set import: Check configured repositories"
Remove empty repository folder when deleting a repository

Bug: 358256
Change-Id: I95b4a4aeb2d54e1bd8e6c17a4981fe71433a5ff9
Signed-off-by: Dani Megert <Daniel_Megert@ch.ibm.com>
Signed-off-by: Robin Stocker <robin@nibor.org>
Update copyright dates

For change I99f7cd610d069d4ae9429c2ff8b756ebdddc1a60.

Change-Id: I7357680625027017eb00de4dfeb15ba715850758
Merge "Mark org.eclipse.egit.core bundle to provide project set feature"
Sort the stashed commits in the Git Repository view properly

The stashed commits should be sorted by order, not by the string label.

Change-Id: I189b32291c7626a85b739d5d05e9268be476f1ed
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Reduce memory footprint when calculating merge bases

This only matters when there is a huge number of refs.

Change-Id: I2e0ea4a9da7fb756354bd6df9f6051e5b0db9a7f
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Increase timeout for UI tests

The build server used to verify changes uploaded to Gerrit for review is
pretty slow so this should help to not fail tests due to slowness of the
build server.

Change-Id: Ia18d3a7942b4704e7dc3f8af09a649c06614aa04
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Revert "Enable "Link with Editor" for compare editor from Tree Compare"

This reverts commit 7a406934a668abcf665edc5de9830f08b2065755 (change
I3c73212eadb883c598aee1ef8af882e0f7725899).

It was causing multiple regressions:

When modifying the contents in the compare editor, it could not be
saved, see bug 393990.

When using the Merge Tool with the "Use HEAD" option, the contents of
the workspace file were shown instead of that of the passed file
revision, see bug 395177.

Bug: 393990
Bug: 395177
Change-Id: I05374ccab215a320f0c808cae9d22f99a7fd5399
Try to fix unstable UI test GitRepositoriesViewFetchAndPushTest

The problem may be that clickContextMenu for the fetch/push is run on
the UI thread asynchronously. So when calling TestUtil.joinJobs
afterwards, the job may not yet have been scheduled.

Bug: 345812
Change-Id: I7f75957d2d44e08679c3eb512cdc446eeb426677
Try to make FetchAndMergeActionTest more stable

Join checkout job when switching branches. Also join job for merge.

When job is done, the resources are refreshed, so
waitForWorkspaceRefresh is not necessary anymore.

Change-Id: Ibc437436dcbf7cd5bac10b7708e39fccc879acca
Fix repository actions not working if project is root of repository

Ifdda37fc51a0cb29145e1c29b09d45317fc068ea changed
RepositoryActionHandler to use ResourceMapping.getMapping(IPath) (it
used the IResource variant before). That used to return null when the
passed path was the repository working directory.

This change fixes it to also return the correct mapping for the
repository working directory path.

Bug: 395062
Change-Id: Id1dad764c7e1207f468f9328777b82cfede7070a
Merge "Fix repository actions not working if project is root of repository"
Make addToIndex test util method work with IResource

Change-Id: I16d69b0189c3b350ff947467e67585d421f4b410
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Add test with untracked folders to IndexDiffCacheTest

In I5cd27f79606decca73b7a0977d147c97e06bfaba, this will be a problematic
case. Now it succeeds because an index diff change triggers a full
refresh each time.

Change-Id: I334c16b202966084cf310fd0a61cad59f34f8ecd
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Refresh only deltas to the last refresh in IndexDiffCacheEntry

This change is a EGit-only implementation of the preceding changes:
 EGit: Change-Id: I5cd27f79606decca73b7a0977d147c97e06bfaba
 JGit: Change-Id: Ia1eae05793483a3fc837e4e0d28c2a52c5013d0b

This has the advantage over the other implementation that it is local to
the location that actually has the performance issue.

Bug: 393642
Change-Id: I5cd27f79606decca73b7a0977d147c97e06bfaba
Also-by: Robin Stocker <robin@nibor.org>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>