Close second git repository before teardown

Fixes test CloneOperationTest.testConfigureFetchAfterCloneTask failure
if executed on NFS mount, see Bug 439720.

Bug: 439720
Change-Id: Id587ec2956e04e072e299b258a4b6b08dd423a08
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Merge "Close second git repository before teardown"
Assist in Push dialog and allow to push to custom refs

Bug: 439350
Change-Id: Idfcb93a778f061c17ae93827cde88a7f93d21cfe
Signed-off-by: Mickael Istria <mistria@redhat.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Use faster method of setting styles for commit message viewer

Using setStyleRanges with the whole array instead of calling
setStyleRange N times is simpler and faster. I don't know why it was
done the complicated way before.

Bug: 439618
Change-Id: I2cf1e67e23f8d32a5a88b45ea5839f51b90c853a
Signed-off-by: Robin Stocker <robin@nibor.org>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
No longer used PushBranchPage_CommitLabel

Was only removed from uitext.properties.

Change-Id: I7385fe8deaceb43b759cf1e2de03e889423ee0e0
Signed-off-by: Robin Stocker <robin@nibor.org>
Don't reset all the style ranges on each mouse move event

This improves history view performance.

Bug: 439618
Change-Id: I9ad1f73e6e993b9e62acb8c75c80a5662fb21c79
Signed-off-by: Robin Stocker <robin@nibor.org>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Update SUBMITTING_PATCHES

It contained outdated information about attaching patches to bug
reports. Shorten it to the essentials.

Also format it using markdown and rename it to CONTRIBUTING.md, which is
a convention and doesn't include "patches" in the name.

Change-Id: Ief7f9a5a711693e6a65fe915309aa0108d76cd8e
Signed-off-by: Robin Stocker <robin@nibor.org>
[stagingView] Provide visual feedback while commit is in progress

Staging view uses now IWorkbenchSiteProgressService to indicate "work in
progress" state for pending commit job. Additionally the staged/unstaged
changes areas are disabled to prevent any user interaction while commit
job is still working.

Bug: 429440
Change-Id: I980cd5b168ba07a2e038ec1c5b416a4535845918
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
[stagingView] Don't reload repository on selection if current one is
same as selected

Prevents unneeded staging view refreshes while selecting files or
folders in repository view

Bug: 439674
Change-Id: I7a151efa423716e4af26359d00d138d87f29b4fa
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
[historyView] Remove no longer used styleRanges field

Bug: 427811
Change-Id: If6229ebd1ee70f66f300fd312305b127cd5ffe98
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Merge "[stagingView] Don't reload repository on selection if current one is same as selected"
Job.belongsTo(family) should not fail on 'null' family argument

Reverted equals() arguments to avoid NPE.

Bug: 440220
Change-Id: Ib30e4528f018092daadab918a1f237dc0bec8702
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Show an explanation when a merge is not possible

* Explain the reason the merge has failed instead of just showing an
exception dialog "Cannot merge now".
* Consolidate duplicate code into MergeActionHandler

Change-Id: Ibdf1f9f7d3cdd55fae41c88eafeb0e6708ecfe42
Signed-off-by: Andreas Hermann <a.v.hermann@gmail.com>
Unstable test: use first label if available to check for status

Seems to be Eclipse version specific: on 3.8 I see only one single label
in the sync view. Fixed to be compatible with both cases.

Bug: 440229
Change-Id: Id4b55ee23e001afc57ea5efdd44d5c3d06b9a466
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>