RETIRED, Gerrit as used by OpenStack
Go to file
Dave Borowitz 484da493b3 Prefer subtypes of Multimap
Guava team recommends using the subinterfaces of Multimap, for the
same reasons they recommend using Set and List rather than Collection:
it documents expectations about ordering, uniqueness, and behavior of
equals. Do this across the board in Gerrit.

Mostly this is straightforward and I tried to exactly match existing
behavior where possible. However, there were a few wrinkles, where
different callers passed different subtypes to the same method.

The main one is arguments to ParameterParser#parse and
splitQueryString, where some callers used SetMultimaps (perhaps
semi-intentionally, or perhaps misunderstanding the nature of
HashMultimap). For the purposes of parameter parsing, a ListMultimap
makes more sense, because it preserves argument order and repetition.

Another instance is a couple places in ReceiveCommits and downstream
where there were SetMultimap<?, Ref>. Since Refs do not implement
equals, this is effectively the same thing as a ListMultimap, and
changing the interface no longer misleads readers into thinking there
might be some deduplication happening.

Finally, this change includes a breaking API change to the return
type of ExternalIncludedIn#getIncludedIn.

Change-Id: I5f1d15e27a32e534a6aaefe204e7a31815f4c8d7
2017-01-18 10:36:38 +09:00
.settings Build with Java 8 2016-09-20 10:19:52 +02:00
bucklets Buck: Fix typo in gerrit_plugin.bucklet 2015-12-23 17:55:11 +01:00
contrib Remove unused/outdated Pylint configuration file 2016-10-20 09:07:01 +09:00
Documentation Deprecate query option on List Groups REST endpoint 2017-01-17 08:01:34 +01:00
gerrit-acceptance-framework Prefer subtypes of Multimap 2017-01-18 10:36:38 +09:00
gerrit-acceptance-tests Merge "Account REST API: adjust the deletable condition of external ids" 2017-01-17 08:58:42 +00:00
gerrit-antlr Fix jar entry paths to be canonical 2017-01-17 11:10:41 -08:00
gerrit-cache-h2 Bazel: Reformat build files 2016-12-07 11:33:07 +00:00
gerrit-common Merge "Remove test prefix from test methods" 2016-12-07 12:48:37 +00:00
gerrit-elasticsearch Define ElasticQueryBuilder in AbstractElasticIndex instead of in each sub class 2017-01-16 07:18:02 +00:00
gerrit-extension-api Prefer subtypes of Multimap 2017-01-18 10:36:38 +09:00
gerrit-gpg Add cache for external ids 2017-01-11 14:32:21 +01:00
gerrit-gwtdebug Bazel: Reformat build files 2016-12-07 11:33:07 +00:00
gerrit-gwtexpui Organize imports 2016-12-07 10:10:37 -05:00
gerrit-gwtui Deprecate query option on List Groups REST endpoint 2017-01-17 08:01:34 +01:00
gerrit-gwtui-common Merge "Remove test prefix from test methods" 2016-12-07 12:48:37 +00:00
gerrit-httpd Prefer subtypes of Multimap 2017-01-18 10:36:38 +09:00
gerrit-launcher Merge branch 'stable-2.13' 2017-01-12 11:00:18 +09:00
gerrit-lucene Prefer subtypes of Multimap 2017-01-18 10:36:38 +09:00
gerrit-main gerrit-main: Bump to Java 1.8 2016-12-12 05:36:37 +00:00
gerrit-oauth Return Optional<Account.Id> from AccountManager.lookup(String) 2016-12-28 16:14:15 +01:00
gerrit-openid Return Optional<Account.Id> from AccountManager.lookup(String) 2016-12-28 16:14:15 +01:00
gerrit-patch-commonsnet Bazel: Reformat build files 2016-12-07 11:33:07 +00:00
gerrit-patch-jgit Merge "Remove test prefix from test methods" 2016-12-07 12:48:37 +00:00
gerrit-pgm Prefer subtypes of Multimap 2017-01-18 10:36:38 +09:00
gerrit-plugin-api Set version to 2.13.5 2017-01-06 09:47:10 +09:00
gerrit-plugin-gwtui Set version to 2.13.5 2017-01-06 09:47:10 +09:00
gerrit-prettify Bazel: Reformat build files 2016-12-07 11:33:07 +00:00
gerrit-reviewdb Add cache for external ids 2017-01-11 14:32:21 +01:00
gerrit-server Prefer subtypes of Multimap 2017-01-18 10:36:38 +09:00
gerrit-sshd Prefer subtypes of Multimap 2017-01-18 10:36:38 +09:00
gerrit-test-util Make the file path for the replacement of a robot comment explicit 2016-12-19 16:45:26 +01:00
gerrit-util-cli Prefer subtypes of Multimap 2017-01-18 10:36:38 +09:00
gerrit-util-http Bazel: Reformat build files 2016-12-07 11:33:07 +00:00
gerrit-util-ssl Bazel: Reformat build files 2016-12-07 11:33:07 +00:00
gerrit-war Set version to 2.13.5 2017-01-06 09:47:10 +09:00
lib Update bouncy castle to 1.56 2017-01-11 23:05:10 +00:00
plugins Prefer subtypes of Multimap 2017-01-18 10:36:38 +09:00
polygerrit-ui Merge "Allow removing already-added reviewers in the reply dialog" 2017-01-17 20:55:04 +00:00
ReleaseNotes Bazel: Reformat build files 2016-12-07 11:33:07 +00:00
tools workspace-status.sh: quote 'tr' arguments. 2017-01-12 16:44:03 +01:00
website/releases Fix Diffy logo on release page by encoding the image 2015-12-29 10:36:39 -08:00
.bazelproject Discontinue publishing of Maven archetypes 2016-12-10 18:02:38 +01:00
.buckconfig Buck: Mark auto value annotation processors as safe 2016-12-13 23:05:30 +01:00
.buckversion Update buck to latest version 2016-11-30 16:51:31 -08:00
.editorconfig Added continuation indent to editorconfig 2016-04-26 14:42:58 +02:00
.gitignore Ignore infer output folder 2016-12-25 09:41:21 +01:00
.gitmodules Adapt .gitmodules to enable superproject subscriptions 2016-07-27 12:01:40 -07:00
.mailmap Fix .mailmap 2016-10-17 14:03:40 +09:00
.pydevproject Update PyDev project to use Python 2.7 2014-10-02 15:16:44 +09:00
.watchmanconfig Watchman: Add eclipse-out to ignored directories 2016-01-22 08:04:24 +01:00
BUCK Buck: Build gwtgerrit without touching PolyGerrit deps 2015-12-01 07:29:21 +00:00
BUILD Bazel: Add :api rule to build all API artifacts at once 2016-12-24 09:33:27 +01:00
COPYING Initial project setup of Gerrit 2 2008-11-14 16:59:34 -08:00
INSTALL Remove Gerrit 1.x to 2.x import tools 2009-03-27 20:20:10 -07:00
README.md Add Gerrit install for Fedora and Docker 2016-10-27 08:29:41 +01:00
SUBMITTING_PATCHES Update push URL in SUBMITTING_PATCHES 2012-03-29 00:57:14 -04:00
version.bzl Bazel: Reformat build files 2016-12-07 11:33:07 +00:00
WORKSPACE Update bouncy castle to 1.56 2017-01-11 23:05:10 +00:00

Gerrit Code Review

Gerrit is a code review and project management tool for Git based projects.

Build Status

Objective

Gerrit makes reviews easier by showing changes in a side-by-side display, and allowing inline comments to be added by any reviewer.

Gerrit simplifies Git based project maintainership by permitting any authorized user to submit changes to the master Git repository, rather than requiring all approved changes to be merged in by hand by the project maintainer.

Documentation

For information about how to install and use Gerrit, refer to the documentation.

Source

Our canonical Git repository is located on googlesource.com. There is a mirror of the repository on Github.

Reporting bugs

Please report bugs on the issue tracker.

Contribute

Gerrit is the work of hundreds of contributors. We appreciate your help!

Please read the contribution guidelines.

Note that we do not accept Pull Requests via the Github mirror.

Getting in contact

The IRC channel on freenode is #gerrit. An archive is available at: echelog.com.

The Developer Mailing list is repo-discuss on Google Groups.

License

Gerrit is provided under the Apache License 2.0.

Build

Install Buck and run the following:

    git clone --recursive https://gerrit.googlesource.com/gerrit
    cd gerrit && buck build release

Install binary packages (Deb/Rpm)

The instruction how to configure GerritForge/BinTray repositories is here

On Debian/Ubuntu run:

    apt-get update & apt-get install gerrit=<version>-<release>

NOTE: release is a counter that starts with 1 and indicates the number of packages that have been released with the same version of the software.

On CentOS/RedHat run:

    yum clean all && yum install gerrit-<version>[-<release>]

On Fedora run:

    dnf clean all && dnf install gerrit-<version>[-<release>]

Use pre-built Gerrit images on Docker

Docker images of Gerrit are available on DockerHub

To run a CentOS 7 based Gerrit image:

    docker run -p 8080:8080 gerritforge/gerrit-centos7[:version]

To run a Ubuntu 15.04 based Gerrit image:

    docker run -p 8080:8080 gerritforge/gerrit-ubuntu15.04[:version]

NOTE: release is optional. Last released package of the version is installed if the release number is omitted.