Apply "type inference for generic instance creation" Java 7 feature

Since GWT 2.6.0 support for Java 7 is added. Simplify creation of
classes in GWT's client code.

Change-Id: I08ff2c189d2874a6b957072912912e4a6089cdd1
Fix wrong AuthException in GetHead

The AuthException for the REST API should be used and not the
AuthException from the authentication backend.

Change-Id: I4fcbf10fac258d2798971ac1c9a78ca6f15a7969
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Add support for raw input to acceptance test framework

To test raw input parameters passing into REST endpoints, add putRaw
method to RestSession class.

Change-Id: If73565c8a6adfa017cdee83037e246304958240d
Add git rm command to acceptance test framework

Change-Id: I6b6c55a20d9c5f08b26547e5f2d0e8ee184e8b59
SideBySide2: Respect base diff revision for files REST call

2d2a3c405e5472f27b96484b068f51c34ee5e6cb added diff against to CS2.
eaeb9ad104b453154fe6e9fb55462710836e18f6 made diff against revision
persistent.  Both changes missed to pass base revision parameter in
files REST call for navigation links rendering.

Bug: issue 2417
Change-Id: I85a9bf23417f77d4cc4aab230efc1d4c9cd75a46
Announce new ITS plugins in Gerrit 2.9 release notes

Add a warning to the Gerrit 2.9 release notes that there are new
plugins for the integration with Bugzilla, Jira and RTC and that the
old plugins are deprecated with Gerrit 2.9.

Also describe the new features of the ITS plugins in the release notes.

Change-Id: Ie9803de95833b0f6c5b01aead7d22039dc33e746
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Wrong button is passed to revert action handler

The revert action handler was being called with the cherry pick
button.

Change-Id: I65535fbeeccb92efc0a635bc21057faebb3f5ee5
Add acceptance test for branch creation

Change-Id: I448d959121e2343ad765d4509fe1de010b768654
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Don't allow project owners to create branches if create is blocked

For creating a branch by pushing to Gerrit it is required to have the
create reference permission. For convenience project owners are
allowed to create branches through WebUI/REST/SSH without create
reference permission (because they anyway can assign this permission
themselves). However create reference can be blocked on a parent
project to prevent project owners from creating branches. In this case
assigning create reference on a project has no effect. The problem is
that project owners can still create the branches through
WebUI/REST/SSH although create reference is actually blocked for them.
With this change project owners are only allowed to create branches if
create reference is not blocked for them. Administrators can still
create branches even if create reference is blocked.

This is consistent to how permissions for branch deletions are
handled, see
  https://gerrit-review.googlesource.com/50890

Change-Id: I1c94aade65e36282400d9d0d407fcc78bbd3a2ae
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
ReceiveCommits: Fix PUSH permission check for draft changes

This change fixes PUSH permission check for blocking draft changes:

  [access "refs/drafts/*"]
          push = block group Anonymous Users

MagicBranchInput.parse() method updates the ref name, converting
the refs/drafts/master to refs/heads/master. All checks happens
with refs/heads/master. Only draft flag is set to true to mark the
change as draft.  Use this flag and explicitly call

  controlForRef("refs/drafts/refs/heads/master")

to check PUSH permission is not blocked for the ref.

Change-Id: I236a2969cf16e39198c26ebe1628de5313b660bd
Support description for project plugin configuration parameter

For project plugin configuration parameter it is now possible to
provide a description. If set this description is shown as a tooltip
on an info icon that is displayed for the project plugin configuration
parameter on the ProjectInfoScreen.

The info icon is taken from the Tango Icon Library [1].

[1] http://tango.freedesktop.org/Tango_Icon_Library

Change-Id: I1f680aa24dca919ad63a6b1a8b48203734e3dfa7
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Refactor ListChangesOption out to extension API

Change-Id: I98a582b13b136969c910ab59d64c45ada38148da
Merge "Refactor ListChangesOption out to extension API"
Merge "SideBySide2: Respect base diff revision for files REST call"
Merge "Fix wrong AuthException in GetHead"
Merge "Apply "type inference for generic instance creation" Java 7 feature"
Use Java 7 StandardCharsets instead of Guava Charsets

Replace with static imports since the class name is so much longer.

Change-Id: If2cdede62a0977db05db69b4c9ec88bd980e011f
Merge changes I236a2969,I1c94aade,I448d9591 into stable-2.8

* changes:
  ReceiveCommits: Fix PUSH permission check for draft changes
  Don't allow project owners to create branches if create is blocked
  Add acceptance test for branch creation
Merge branch 'stable-2.8'

* stable-2.8:
  ReceiveCommits: Fix PUSH permission check for draft changes
  Don't allow project owners to create branches if create is blocked
  Add acceptance test for branch creation
  Wrong button is passed to revert action handler

Conflicts:
	gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/git/BUCK
	gerrit-server/src/test/java/com/google/gerrit/server/project/RefControlTest.java

Change-Id: I11e4b0c846fa60b1bec67c4ca90de3d8fce6df8c
Merge "Merge branch 'stable-2.8'"