New wizard to configure a remote as Gerrit

Bug: 357222
Change-Id: If1b2e062501650a7742ce2c857fa78ed55c11bb3
Signed-off-by: Stefan Lay <stefan.lay@sap.com>
Remove Gerrit Configuration Page from Clone Wizard

Now we have the possibility to plug in clone sources. The Gerrit
configuration will be provided by the appropriate Gerrit extension.

If this extension is not installed, or the user has cloned from
another source or using a custom URI, he can still configure the
remote as Gerrit in the context menu of the Repositories View.

Change-Id: Ia7f6654447e699d0b2d785efd852652b0a470d69
Signed-off-by: Stefan Lay <stefan.lay@sap.com>
Support double-click event on repository location page

Change-Id: I7cf1d936503c91f0d652cf5a1d1a1976e2edf881
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Improvements and fixes for clone wizard

- Allow repository search result to be passed to AbstractGitCloneWizard
and GitCloneWizard. The repository location page is skipped in this
case. If the search result provides a WizardPage, then it's shown,
otherwise the result is directly evaluated.
- As a side effect, this restores URI paste support in repositories view
- Skip repository location page if there's only one clone source
provider with a fixed location

Change-Id: I6e32cb0c5dea5a7689a5a99bc7ba50b2010170e2
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
HistoryView: allow to select Ref when creating a Branch

If the user selects a commit with a local or remote branch on it, the
user should be able to select one of these branches as base for the new
branch instead of always creating the new branch on the commit.

Change-Id: I6addd9ed5e555db132be2d71152bee87cc07a561
Signed-off-by: Mathias Kinzler <mathias.kinzler@sap.com>
Merge branch 'master' into stable-1.3

* master:
  HistoryView: allow to select Ref when creating a Branch

Change-Id: If342443ed7feb7c0480f8f094796f841e7ea1e13
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
[repoView] Show stashed commits

Adds a new root level node that displays a list of the stashed
commits that open in the commit editor when selected.

Future actions will be added to stash current work, apply
a selected commit, and drop a selected commit.

Change-Id: I6b7e5670a89c553acd95528fbb5906e75f1d4656
Prevent StackOverflowException in RepositoryMapping

StackOverflowException occurs when one of workspace projects is remote
project (eg. created using Eclipse Linux Tools)

Change-Id: I69b9d659ea44192082ed1ba3b829c264cb1185a7
Signed-off-by: Dariusz Luksza <dariusz@luksza.org>
Merge "[repoView] Show stashed commits" into stable-1.3
[historyView] Add context menu to compare with working directory

This action can be used to bring back hunks from previous
revisions or to pull changes from an opened stashed commit.

This action will also be available in the Files section of the
commit editor.

Change-Id: I0e2404b9af9c434467656f7243ed11fd69871430
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Guard against missing HEAD object id when decorating submodules

This can occur when the label provider is run for a submodule
repository while the submodule repository is being cloned

Change-Id: Id56f79dd342f0483f1d2263715762e35db5470ad
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Add proper check to ensure created folder is cleaned up

Previously missing '!' before hasRoot to ensure folder is only
deleted if it didn't previously exist and was created to stage
a project that is being closed due to it missing on the current
branch

Change-Id: I590c0768bb17df21cc45412527a843ce5f234be1
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Create ProjectRecord from .project file instead of parent

The project root folder was previously passed to the ProjectRecord
constructor incorrectly causing issues when tracking projects where
the root folder differs from the name in the .project file.

Now the '.project' file is passed to the ProjectRecord constructor
when restoring projects on a checked out branch.

Change-Id: I60c3d04d5c580929ce14974ecfe503da1bf912f6
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Support tracking project at root of repository

Previously a project at the root of the working directory
was not tracked since they didn't have a relative path and
were not stored correctly in the memento.

This case is now explicitly handled and a project at the root
of the repository's working directory will now be tracked and
re-opened when switching branches.

Change-Id: I6ad4620b866fc2bce0ee02e47782bc5a2271aa52
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Fix test SynchronizeViewGitChangeSetModelTest

Some tests didn't expect a dirty marker in text decoration.

Change-Id: I58b9131812a9696ad41e59e39a173a7161924a01
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Merge "Save Actions for removing braces of one-line statements"
Disable buttons when config is missing or not writable

The ability to add, edit, and remove sections is now disabled
when the configuration being viewed is either not writable or
missing.

Bug: 370228
Change-Id: I61fe1b0f751badf443f6f63463d9924004a62e6b
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
[repoView] Test repository deletion

Change-Id: I263b74a30ea2171d0c9fdb70bf5c83c312231cf1
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Signed-off-by: Kevin Sawicki <kevin@github.com>
Update build to use the Indigo SR2 orbit repository

This was requested on the cross list for Indigo SR2 builds [1].

[1]
http://dev.eclipse.org/mhonarc/lists/cross-project-issues-dev/msg07166.html

Change-Id: I924163a0ba30bdc4d335780997d80a9104f53db2
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Signed-off-by: Kevin Sawicki <kevin@github.com>
Delete working directory when removing a submodule repository

Change-Id: Ie93d16e627bd091b111b3441c1d5ef0d0de881db
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>