commit | a5504b0ca0f02ad618be993ed98d1c9022cca336 | [log] [tgz] |
---|---|---|
author | Alice Kober-Sotzek <aliceks@google.com> | Wed Jun 14 15:01:33 2017 +0200 |
committer | Alice Kober-Sotzek <aliceks@google.com> | Wed Jun 14 17:19:37 2017 +0200 |
tree | b5eed17fc3e90c6b7720ed386446fb37ef098b2f | |
parent | 40270c4bef70f2966ea24c7d9e836f6d140f526e [diff] |
Fix bug in computation of hunks due to rebase Combining the optimization which omits files from the diff result containing only hunks due to rebase with the recursive calling of the diff computation didn't work well. The logic assumed that all differences between the parent commits were returned. Due to the optimization, only some of them were returned and hence only some hunks due to rebase could be marked. As the optimization was only applied under specific circumstances, this issue didn't occur for every diff between patch sets. In particular, it was observable when a change was based on another change. To resolve this issue, a parameter is introduced which influences whether optimizations might be applied. All code paths from external calls continue to apply those optimizations if applicable. When the differences between parent commits is computed for the hunks due to rebase, the unmodified differences between their trees is explicitly requested. As the recursion is thus cut short, the expensive call to RevWalk#isMergedInto can be removed from the check which determines whether the edits due to rebase are computed. Even though the DiffSummaryCache is supposed to be fairly independent from changes in PatchList and PatchListKey, its implementation is coupled to them. As the change in the diffing logic shouldn't influence the DiffSummaryCache, this change tries to work around it. Change-Id: I9bf31dec18d6dd357c17c640fa0a940808e97269
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 Bazel and run the following:
git clone --recursive https://gerrit.googlesource.com/gerrit cd gerrit && bazel 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>]
On Fedora run:
dnf clean all && dnf install gerrit-<version>[-<release>]
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.