RevCommit is referenced after hiding blame annotations, wasting memory

Bug: 438503
Change-Id: Ia453d0e47ad5690984ab391c24d6ced56c393acf
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Reverse src/dest order of push result dialog

Bug: 438639
Change-Id: Id2dcaa592745368f4f8e1e86217d9878e4afcdd2
Signed-off-by: Mickael Istria <mistria@redhat.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Fix grey text in push result dialog

It made sense when the text was at the end. With the reversed order, it
no longer does.

Bug: 438639
Change-Id: If87e0a4153dd028e51849a557fb2d436c669e03d
Move revision classes into new package

This unclutters the org.eclipse.egit.ui.internal package a bit.

Change-Id: I4ef31c07221e80048cc31e4d73269ddab7fbd51a
Move FilteredCheckboxTree and CachedCheckboxTreeViewer to components

Change-Id: Ic7b0845360dfd5e610b28b3fe9ea00f83a6372fe
Signed-off-by: Robin Stocker <robin@nibor.org>
Add utility method shortening a string to a maximum length

Change-Id: I6d354e065688b6dc1c891d4d95096ad57e6c8309
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Improve simple push dialog

This dialog now shows which commit, from which branch is about to be
pushed. It fits both use cases of pushing HEAD from resource, or pushing
a single branch.

Bug: 436669
Change-Id: Ibd8d75d6cece181657210fba73c9f2be90ea077b
Signed-off-by: Mickael Istria <mistria@redhat.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Export package org.eclipse.egit.ui.internal.revision

Change-Id: I3437704d644f6a6473626a3f19d7c6a235e11e22
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Clean up getSelection in RepositoryActionHandler

* Split up convertSelection. There were two ways this was called, and
  either one or the other argument was always null.
* Remove the duplication between the ExecutionEvent and
  IEvaluationContext variants.
* Mark non-instance methods final.

Change-Id: Ifdab09d34b35f7dbc4776c5e3ff8d599fd9debe5
Signed-off-by: Robin Stocker <robin@nibor.org>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Add "Stashes" menu to Team context menu and toolbar

Provides a way to stash changes as well as viewing the existing stashes.

The toolbar icon is for stashing changes (when clicking on the icon),
and shows the menu with the existing stashes when using the pull down.

The existing menu item in the repo view was also replaced by this
submenu.

Looks like this when there are no stashes yet:

* Stashes
  * Stash Changes...
  * -
  * (no stashed changes)

And like this with stashes:

* Stashes
  * Stash Changes...
  * -
  * 0: work on foo
  * 1: try fixing bar

Bug: 383794
Bug: 420936
Change-Id: I70a9dba03d569ade9adde49d0ccc09e96f72c237
Signed-off-by: Robin Stocker <robin@nibor.org>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
[blame] Show in history doesn't open History view if closed

Bug: 439289
Change-Id: I9f7e96e2573ef63caf8a77f011c0ec3204612d77
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Suppress warnings for unchecked cast in Activator

Change-Id: Ibe88ed0deb06dda0c86204d3ac677c8cfc8707d7
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
[repoView] Sort folders before files in working dir

The order is defined in RepositoriesViewSorter#category.

Bug: 439339
Change-Id: Ifb1ef10e5eaab04fa49d5529f45e595356666f72
Signed-off-by: Robin Stocker <robin@nibor.org>
Try to fix unstable UI test testDeleteSingleBranch

Change-Id: I778d72ad8de488ba87e9314d0762392b52cdfbca
Signed-off-by: Robin Stocker <robin@nibor.org>
Offer interactive and preserve merges options in rebase dialog

JGit-Dependency: I4cf69b9d4ec6109d130ab8e3f42fcbdac25a13b2
Change-Id: Ic0dca4165dfe93c0f8b1ac228dafae5d24996bb8
Signed-off-by: Konrad Kügler <swamblumat-eclipsebugs@yahoo.de>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
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>