commit | 9c6c080ca703760b8c09fd4e57c3a15e38a70e86 | [log] [tgz] |
---|---|---|
author | Edwin Kempin <ekempin@google.com> | Wed Jan 13 15:59:05 2016 -0800 |
committer | Dave Borowitz <dborowitz@google.com> | Tue Jan 19 14:19:09 2016 -0500 |
tree | fe4ef0df9fdbb02ddc43b6ddef2987ce647dd504 | |
parent | ed44d909eac13dfe3d79ee051d26ef0d9c1d24dc [diff] |
Populate createdOn and lastUpdatedOn fields of a change from notedb createdOn/lastUpdatedOn is set to the timestamp of the first/last commit on the notes branch. The initial update of the change notes must create a commit even when it is empty so that the createdOn timestamp is recorded. This initial update is done when the change is created. To reflect this is in AbstractChangeNotesTest the newChange method which creates a change is updated to also make an initial update to the change notes. As consequence of this all tests that assert timestamps must be adapted because the creation of the initial update of the change notes consumes one timestamp. Also the newUpdate method in AbstractChangeNotesTest is adapted to load the ChangeUpdate that it creates so that its revision field gets populated. Due to this tests that expected that the revision was null had to be changed as well. The multipleUpdatesIncludingComments test started to fail because the same RevWalk instance was passed two times into ChangeNotesParser. ChangeNotesParser walks the commits and for the second ChangeNotesParser instance the walk was already done. Instead of resetting the RevWalk, create a new one since this is easier to read. PostReview must take care to set the new lastUpdatedOn timestamp on the change only after the lastUpdatedOn field was populated from notedb, otherwise the lastUpdatedOn timestamp in the database will not be updated. Change-Id: I24e385e32052fc3286fab50c7377686f425baf1f Signed-off-by: Edwin Kempin <ekempin@google.com>
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.