commit | 5fadbc91d227e559a5409c1f19098677259db5dc | [log] [tgz] |
---|---|---|
author | Dave Borowitz <dborowitz@google.com> | Fri Aug 19 11:35:50 2016 -0400 |
committer | Dave Borowitz <dborowitz@google.com> | Fri Aug 19 14:06:03 2016 -0400 |
tree | 328e3b351245aa053341509db6eb2972f7ffd7da | |
parent | adf6193e65e9c39da03ebb2cea773277a74142ef [diff] |
Optionally push opening repo into ChangeKindCacheImpl.Loader The ChangeKind cache is persistent and should have a very high hit rate. Thus opening the repository before every call to getChangeKind is potentially very wasteful, particularly if called in a loop during ChangeJson. Allow the Repository args to ChangeKindCache to be @Nullable, and open the repo lazily from Loader#call() only if a cache load happens. There is still a path in ChangeJson where we need to open the repo to get commit info. We punt on that path for now and continue opening the repo in a loop. Fortunately none of these options are used in search results in the UI. Contrast this with ChangeKindCache which is now used to populate the revision fields in each ChangeInfo. Change-Id: I111748fdd0c72fdd073cb8506ca2f2c8b9e9fe84
Gerrit is a code review and project management tool for Git based projects.
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.
For information about how to install and use Gerrit, refer to the documentation.
Our canonical Git repository is located on googlesource.com. There is a mirror of the repository on Github.
Please report bugs on the issue tracker.
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.
The IRC channel on freenode is #gerrit. An archive is available at: echelog.com.
The Developer Mailing list is repo-discuss on Google Groups.
Gerrit is provided under the Apache License 2.0.
Install Buck and run the following:
git clone --recursive https://gerrit.googlesource.com/gerrit cd gerrit && buck build release
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>]
NOTE: release is optional. Last released package of the version is installed if the release number is omitted.