Fix configuration for plugin and extension API artifact deployment

Add the necessary settings in the fake pom.xml file, and correct the URL
in the BUCK file to make deployment with gs-maven-wagon work.

Change-Id: I6d1f84c850c70f731d061d9e50a062d37c68baf2
Buck: add build for gerrit-plugin-gwtui

This plugin module was left out during Buck migration.

  $>buck build api

produces now plugin-gwtui.jar and plugin-gwtui-src.jar.

Buck Maven bridge was enhanced to {install|deploy} the new artifact to
remote or local Maven repositories:

  $>buck build install_api

deployes

  gerrit-plugin-gwtui-2.9-SNAPSHOT-sources.jar
  gerrit-plugin-gwtui-2.9-SNAPSHOT.jar

to local Maven repository.

Change-Id: Idae18f6df2e67fe53d57b8c35caa4226333e269b
(cherry picked from commit c8cffc8e928a9277621ffff6cb740f79cd662195)
Fix related changes after rebase

Given a stack of two commits C->P (child depends on parent), if P is
rebased or updated C should still considered to be a related change,
even if C has not yet been rebased onto P' (new P).

This was broken because we did not include all permutations of P
into the seed queue.

Bug: issue 2073
Change-Id: Ife954810ece39f44630b8c17a4f1b70192bd1611
Buck: unsign all jgit jars

Change-Id: I25749b80f2060f3322844cd2b94075acd3874e51
(cherry picked from commit 0b579f89efe2e9889b84f5eb609a9afd422cca44)
Buck: fix api_install rule

Change-Id: I069b52004781b3b1a8d64514da3f2e4da8047816
(cherry picked from commit a3f72e4bb84deb1892e931d850e06f8ee8a55b95)
Merge "Buck: fix api_install rule" into stable-2.8
Bugfix: Changing Task state breaks comparator in ShowQueue

This can happens if you have a long queue and the state of
a task (DONE, CANCELLED, RUNNING, READY, SLEEPING, OTHER)
changes while the sorting is ongoing. The reason this
generates an error is because the Task State defines
the tasks’ place in the queue.

If Task state changes while the sorting of the queue is
ongoing the Comparator violates its contract of:
X<Y, Y<Z => X<Z
and throws:
IllegalArgumentException: Comparison mehtod violates its
general contract!

Fixed this bug by saving a snapshot of the state and delay
of the tasks in a wrapper.
* Introduced interface TaskInfo that is implemented by
  QueueTaskInfo
* Added getTaskInfos method in WorkQueue decoupling it from
  ShowQueue implementation by Interface and factory.

Signed-off-by: Gustaf Lundh <gustaf.lundh@sonymobile.com>
Change-Id: Iea17046aea1b8c6119cfc663438e17f663e05b22
Merge branch 'stable-2.7' into stable-2.8

* stable-2.7:
  Bugfix: Changing Task state breaks comparator in ShowQueue

Conflicts:
	gerrit-server/src/main/java/com/google/gerrit/server/git/WorkQueue.java
	gerrit-sshd/src/main/java/com/google/gerrit/sshd/commands/ShowQueue.java

Change-Id: I7f5d5484c49a8dfb1e634ad57e28ba13ed3a607d
Set up Release Notes for 2.8.1

Change-Id: Ia8e1680a1facf85f60ce4f7cdf50a4e3c567f93d
Fix broken link in 2.7 release notes

Change-Id: I64ccf7d9795b55040670815688261e4cb35b2e41
Merge branch 'stable-2.7' into stable-2.8

* stable-2.7:
  Fix broken link in 2.7 release notes

Change-Id: Iaf92b8ea36f3b2d24aa4a9f8a793d1f09ebea23c
AllRequestFilter: delegate to the filters for init and destroy phases too

It is not sufficient only to dispatch doFilter() methods. To initialize and
destroy filters, init() and destroy() methods must be honored.

Change-Id: I5b87583a212c4dc854cf205f2a57125b713736cb
Enable syntax coloring for Go, BUCK and .gitmodules

Register a custom MimeDetector that identifies these
files and selects the content type known to CodeMirror.

Change-Id: I4335e79ebc9d5e89db6cd0e7040486bd97871b47
SideBySide2: Map *.cxx and *.hxx to clike CodeMirror mode

These extensions are not currently recognized as C++ source code.
Add a static mapping for them to the C++ MIME types recognized by
CodeMirror using the clike mode.

Bug: issue 2320
Change-Id: I454b982deb8a27643bbaa0c928ffe8e20f426d43
SideBySide2: Map .py files to text/x-python

Change-Id: I5374219ae8b322b87c6b139108534b005c9e3b37
Fix ArrayIndexOutOfBoundsException on initial commits

PatchSetInserter crashed if given a new patch set for an initial
commit in a repository. The lack of parents caused getParent(0)
to throw an exception.

Instead require the two commits to have the same number of parents.
If that number is 0, the commits are NO_CODE_CHANGE. If >0 then
test only the first parent as before.

Change-Id: I6cefd5f16bf866062b247143a64d3eac92710192
Update 2.8.1 release notes with recently merged changes

Change-Id: I278e2874cfdd683dbedf5af9024184db2a528648
Merge "Fix ArrayIndexOutOfBoundsException on initial commits" into stable-2.8
Merge changes I5374219a,I454b982d into stable-2.8

* changes:
  SideBySide2: Map .py files to text/x-python
  SideBySide2: Map *.cxx and *.hxx to clike CodeMirror mode
Merge "Update 2.8.1 release notes with recently merged changes" into stable-2.8