Codemirror: Add support for perl mode

Bug: issue 2398
Change-Id: Ie7c2b4583a71ad9646ef745df156bcb31ae1f9a4
Codemirror: Add support for ruby mode

Change-Id: I0077bf99ec9960beb6d40911b65ee92af523b093
Codemirror: Add support for Lisp mode

Change-Id: I653b8a385029bd89516206ac67e022915d5713c1
Codemirror: Add support for Clojure mode

Change-Id: Ie814a7f7b5a97554617889b439f02aec065b8189
Codemirror: Add support for Groovy mode

Change-Id: I7654e4c9911a3c6da9023155440445a4e777516b
Documentation: Update download link

For quite some time, downloads have not been hosted on Google Code,
and are now hosted elsewhere. The documentation should reflect this
move. The one schema update on Google Code is not what most users
will be looking for when trying to download Gerrit

Change-Id: Ib1f7a9bc17e02d4cfce849a960e461425f004e91
Check if user can read HEAD commit when resolving detached HEAD

If HEAD was detached the GetHead REST endpoint refused to resolve HEAD
if the user was no project owner. Instead we are now checking if the
user can actually read this commit and if yes, we return it.

If HEAD points to a non-existing commit we still return the commit
only if the user is a project owner.

Change-Id: I56c49b578516070eb3b02f22677559a0eb11b02e
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
ChangeScreen2: Fix enter when setting topic

Do not allow KEY_ENTER to cause the selected file to open.
Instead stop the key and only update the topic.

Change-Id: I617d738dc826b3d8f2fdea3b52e706ee0a2b628e
Remove quotes and trailing period from "topic edited" messages

When the topic is edited, a change message is added that shows
the old and new topics.  If the topic is set to a URL, the URL
is linkified, but the linkification includes the trailing closing
quote and period after the topic name, and the link does not work.

Remove the quotes and trailing period to prevent this.

Bug: Issue 2397
Change-Id: Ic70882f7355cf84e12a2853f0ac6a77c4ca1543d
Fix build failure due to Java 7 specific statement usage

6ecab77d02b2b117c0275ed391174aa63f683f60 was cherry-picked from
master and causes a build failure because it uses a multi-catch
statement that is not supported in source version 1.6.  On master
the Java source version is 1.7 which is why it builds there.

Change-Id: Ia43c2c6b9068553635a5ddd5bc4129ddf5c1fd35
Add missing documentation of secondary index configuration

Document that open and closed changes are indexed in separate
indexes, and for Lucene indexes the RAM buffer size and maximum
buffered documents can be configured.

Add an example configuration.

Change-Id: Ic4cb834cea0c716052c419377a818e369bfe2ce7
Correct description of revisions field in ChangeInfo

Change-Id: Ifdff5ff51ec97935a4f7b9b571ccd2875b48c3f4
Merge "Add missing documentation of secondary index configuration" into stable-2.8
SSHD: drop nio2 backend for now as it appears to be broken

Mina SSHD nio2 backend is currently broken. Drop it from the configuration
and code. It appears that the bug is already fixed upstream [1]. Waiting
for the next SSHD release 0.10 for upgrade before we can enable it again.

[1] https://issues.apache.org/jira/browse/SSHD-252

Reported-By: Will DeBerry <willdeberry@gmail.com>
Change-Id: I6dbf0f7a1165b25304ef07f2792db67828dca10c
Add link to validation listeners in the plugin documentation

The plugin documentation describes listeners that plugins can
implement to be notified about certain operations in Gerrit.

The validation listeners are described on an own page, but readers of
the plugin documentation may expect the description of the validation
listeners to be next to the description of the other listeners.

Change-Id: Id12ba70f00b6f08eed14d6c4644de50f4f2657d8
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Remove obsolete commands from slave mode commands list

Running the `gerrit` command without any arguments over ssh results
in a list of available commands being shown.

When running the Gerrit server in slave mode, this list includes the
`approve` command which was deprected and then removed, and the
`replicate` command which is now handled by the replication plugin.

Remove these commands from the list.

Change-Id: Ide32dde34dcb1bc59a05001c43d2ce423d193ba0
Merge "SSHD: drop nio2 backend for now as it appears to be broken" into stable-2.8
Remove unused import of Nio2ServiceFactory

Change-Id: I22ad4a22616ce506cc03008fde639f979deb9a36
Add description for commands disabled in slave mode

Running the `gerrit` ssh command without arguments to a server that
is running in slave mode results in a list of available commands
being shown.

In this list, the commands that are disabled in slave mode do not
have any description.

Add a description mentioning that the command is disabled due to
the server running in slave mode.

Bug: Issue 2424
Change-Id: Iffc43a921e70a9ed9008a62dcec12b80683b71b3
Remove 'including replication' from the show-queue command description

Replication is handled by the replication plugin.  The plugin might not
be installed, so including this in the description could be misleading.

Change-Id: If741d932dbabc5425d8a703e8ff12eb0bfd7e321