Update PyDev project to use Python 2.7

Buck now requires Python 2.7, so update the project accordingly.

Change-Id: I5e401b00e9ac80eab3008ced0f632f7d4065fcbf
Add test sources to .classpath files of eclipse plugin projects

Change-Id: I274e7d52648eff78f8cf218b8146bdedac7f8007
Signed-off-by: Stefan Lay <stefan.lay@sap.com>
Remove "deprecation warning" in user upload documentation

Pushing to refs/changes/{number} is not going to be removed, so
it's not appropriate to mention this in a "deprecation warning".

Change the header to "Note" instead.

Change-Id: I7ac522c39481f67859870d3c729bc420837a0441
Merge "Add test sources to .classpath files of eclipse plugin projects"
Make Apache Commons IO available for plugin build

Change-Id: I5e16fcb289dcf9c10602c179cf0d49f2a655c8f0
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
SSH: Simplify CachingPublicKeyAuthenticator implementation

In the context of [1] the same class was implemented upstream and since
upgrade to the latest SSHD release is available. So that we don't need
to duplicate the logic, but only supply right authenticator instance
(DatabasePubKeyAuth authenticator in our case) in constructor.

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

Change-Id: I402d4487ce98f030996f7c7f878c564b60ea3dca
Fix using HTTP methods other than GET from plugins

Commit 3bde74c2797 introduced a bug in the REST API. Methods other
than GET could not be used anymore  from plugins. For example it was not
possible anymore to delete projects with the delete-plugin using DELETE.

Bug: issue 2949
Change-Id: If90247ec4e0dad03b02d0a9e21202455fece90a7
Signed-off-by: Stefan Lay <stefan.lay@sap.com>
Merge "Fix using HTTP methods other than GET from plugins"
Merge "Update PyDev project to use Python 2.7"
Merge "Make Apache Commons IO available for plugin build"
Merge "Remove "deprecation warning" in user upload documentation"
Give full names to 'r' and 'l' options on magic branch input

Changes the names to '--review' and '--label' and add '-r' and '-l'
as aliases.

Change-Id: I54a7b15151c74193c2bd8324e87a5857babe3080
Update cookbook plugin to latest revision

- Add example of using the getCurrentUser method in JS API
- Set API version to 2.11-SNAPSHOT

Change-Id: I247664bbf197bc96d6ad83c86757bf86707aac8a
Revert "CM3: Add reStructuredText mode"

Causing rendering failures in some cases. Filed a bug upstream:

https://github.com/codemirror/CodeMirror/issues/2850

Change-Id: I0b4032d41b1fe5b9756ff59f752f5fce86634c41
Temporarily disable Go syntax highlighting

Unlike I0b4032d4, this bug is not reproducible by pasting the offending
contents into a plain HTML page; it appears to be an issue with our
diff context folding.

Change-Id: I64cd1793c46a3668ee8c67a37b0e09c7ede34c2c
Fix deletion of change edits

Deletion of change edits only worked accidentally due to a bug that
was introduced by commit 3bde74c2797. After this bug was fixed by
commit 3d227bbadfa the deletion of change edits was not working
anymore and 2 tests in ChangeEditIT were failing.

Due to the bug DELETE.edit on a change was turned into GET.edit which
resolved to the ChangeEdits collection and this collection was able to
handle the delete. After the bug is fixed a REST view for DELETE.edit
on the ChangesCollection is needed to handle the delete of change
edits.

Change-Id: I4706f5656d27b13dd11561c33ce177cbcb828450
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Return '404 Not Found' on delete of a non-existing change edit

The current response code '400 Bad Request' is wrong as this indicates
a request that is not understood by the server due to malformed
syntax. In this case the request is syntactically correct but the
resource doesn't exist, hence '404 Not Found' is the correct response.

Change-Id: I13a2ab76150709886141672bc5fe9534a40a8d40
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Decouple deletion of change edits from deletion of file in edit

I4706f565 introduced dedicated endpoint for deletion of change edits.
The combined logic in ChangeEdits.DeleteEdit can be now removed, the
endpoint can be renamed to match the new functionality and the code
can be simplified and adjusted to only one use case: deletion of files
in change edit.

Change-Id: I64fcb1557ead6e7bcdb75deb148a21d1d132cee4
Make Apache Commons Lang available for plugin build

This is required for making the x-docs plugin build in the Gerrit
tree.

Change-Id: I74a770468a57970360cc9381f9d7db4bd9844d15
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Add __standalone_mode__ variable to differentiate between build modes

In some cases plugins needs to differentiate the path of dependencies
in gerrit tree and standalone build mode. Provide python variable and
set it to True and False in standalone and in gerrit tree modes.

Change-Id: I437f2c883ed7c0f335896567b5470d15b34512a4