RETIRED, Gerrit as used by OpenStack
Go to file
Saša Živkov 958d8e734b Improve the version computation for the release notes
The "make -C ReleaseNotes" used to produce a version descriptor like:

  X.Y (from X.Y-rcN-...)

when the ReleaseNotes-X.Y.txt wasn't changed in the vX.Y tagged commit.

For example, if we checked out the v2.10 and then built the
ReleaseNotes-2.10.txt the version string in the html file was:

  2.10 (from v2.10-rc2-...)

which wasn't really nice for a final release. I had to change the
generated html file manually.

Here is an overview of how this change improves the computation of the
version string for the ReleaseNotes-2.10.txt file:

Checked out | Version (before)         | Version (after)
------------+--------------------------+---------------------
v2.10-rc2   | 2.10 (from 2.10-rc1-...) | 2.10 (from v2.10-rc2)
v2.10       | 2.10 (from 2.10-rc2-...) | 2.10
master      | 2.10 (from 2.10-rc2-...) | 2.10

Only add the "(from N)" suffix if the ReleaseNotes-X.Y.txt is
different in HEAD and in the vX.Y. In the "(from N)" string compute the
N as "git describe HEAD" instead of describing the last commit where the
ReleaseNotes-X.Y was changed.

Change-Id: I66aff6cc57cfbd42a332ca19445dedbfbee0b088
(cherry picked from commit 25bd938158)
2015-04-16 12:38:17 +00:00
.settings Eclipse: Bump java source and target level to 7 2013-11-29 00:15:50 +01:00
bucklets Buck: Allow to co-exist in tree and standalone plugins 2014-06-26 10:59:25 +02:00
contrib Allow to download reposize.sh script from Gerrit 2014-05-09 16:20:51 +02:00
Documentation Revert "Revert "Allow configuration of SSH rekey values"" 2015-04-06 12:33:06 +09:00
gerrit-acceptance-tests Update JGit to version 3.5.1.201410131835-r 2014-10-22 13:01:27 -04:00
gerrit-antlr Buck: Remove usage of genfile() 2014-06-10 07:14:18 +00:00
gerrit-cache-h2 Honor expireAfterWrite in the H2CacheImpl 2014-12-03 16:25:05 +09:00
gerrit-common OpenID: Add support for Launchpad on the login form 2015-03-01 22:25:50 +01:00
gerrit-extension-api Update version to 2.10.2 2015-03-26 16:38:04 +01:00
gerrit-gwtdebug Prevent StackOverflowError in JettyTreeLogger 2014-02-07 12:54:18 +00:00
gerrit-gwtexpui Do not linkify trailing dot or comma 2014-07-16 17:24:32 +09:00
gerrit-gwtui Remove unused imports 2015-04-06 22:39:45 +09:00
gerrit-gwtui-common Buck: Rename gwtxml to gwt_xml in gwt_module() 2014-05-19 12:26:50 -07:00
gerrit-httpd Support hybrid OpenID and OAuth2 authentication 2015-04-16 10:34:12 +00:00
gerrit-launcher Apply "type inference for generic instance creation" Java 7 feature 2014-04-26 15:27:57 +02:00
gerrit-lucene OnlineReindexer: log the success/failure numbers on exit 2015-03-25 13:57:05 +01:00
gerrit-main Build Main for Java 1.2 2013-11-30 01:53:00 -08:00
gerrit-oauth Merge "OAuth: Respect servlet context path in URL for login token" into stable-2.10 2015-04-14 05:14:40 +00:00
gerrit-openid Support hybrid OpenID and OAuth2 authentication 2015-04-16 10:34:12 +00:00
gerrit-patch-commonsnet Replace 'for' loop with 'foreach' 2013-12-04 01:02:53 +04:00
gerrit-patch-jgit Buck: Rename gwtxml to gwt_xml in gwt_module() 2014-05-19 12:26:50 -07:00
gerrit-pgm Revert "Downgrade SSHD to 0.9.0-4-g5967cfd" 2015-04-06 12:26:07 +09:00
gerrit-plugin-api Update version to 2.10.2 2015-03-26 16:38:04 +01:00
gerrit-plugin-archetype Update version to 2.10.2 2015-03-26 16:38:04 +01:00
gerrit-plugin-gwt-archetype Update version to 2.10.2 2015-03-26 16:38:04 +01:00
gerrit-plugin-gwtui Update version to 2.10.2 2015-03-26 16:38:04 +01:00
gerrit-plugin-js-archetype Update version to 2.10.2 2015-03-26 16:38:04 +01:00
gerrit-prettify Buck: Rename gwtxml to gwt_xml in gwt_module() 2014-05-19 12:26:50 -07:00
gerrit-reviewdb Expose extension point for generic OAuth providers 2015-03-06 01:10:40 +01:00
gerrit-server Merge "Check reachability from R_HEADS/R_TAGS/REFS_CONFIG when creating branches" into stable-2.10 2015-04-16 12:34:56 +00:00
gerrit-solr Delete a change from the index when it is not in the DB 2014-11-12 17:03:41 +00:00
gerrit-sshd Revert "Revert "SSH: Simplify CachingPublicKeyAuthenticator implementation"" 2015-04-07 19:23:22 +09:00
gerrit-util-cli ReceiveCommits: Add support for approvals 2014-05-08 17:08:44 -07:00
gerrit-util-ssl Remove unused .gitignore 2013-11-28 22:56:51 -08:00
gerrit-war Update version to 2.10.2 2015-03-26 16:38:04 +01:00
lib Revert "Downgrade SSHD to 0.9.0-4-g5967cfd" 2015-04-06 12:26:07 +09:00
plugins Update revision of the replication plugin 2015-04-14 22:34:09 +09:00
ReleaseNotes Improve the version computation for the release notes 2015-04-16 12:38:17 +00:00
tools Merge branch 'stable-2.9' into stable-2.10 2014-09-05 19:13:31 +09:00
website/releases Exclude gerrit-snapshot-* from releases page 2014-02-19 05:56:00 +00:00
.buckconfig Buck: Share buck cache directory between multiple source trees 2014-06-12 09:58:24 +02:00
.buckversion Update Buck 2014-06-24 20:40:48 +00:00
.gitignore Merge branch 'stable-2.9' 2014-05-27 09:58:38 +09:00
.gitmodules Add singleusergroup plugin 2013-11-09 07:45:00 +01:00
.pydevproject Set python version back to 2.6.5 in .pydevproject 2013-05-20 11:36:08 +09:00
BUCK Update Buck and use gwt_binary() 2014-05-19 11:41:31 -07: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
SUBMITTING_PATCHES Update push URL in SUBMITTING_PATCHES 2012-03-29 00:57:14 -04:00
VERSION Update version to 2.10.2 2015-03-26 16:38:04 +01:00