Edwin Kempin | d957bde | 2013-01-22 09:24:25 +0100 | [diff] [blame] | 1 | Release notes for Gerrit 2.5.2 |
| 2 | ============================== |
| 3 | |
| 4 | Gerrit 2.5.2 is now available: |
| 5 | |
| 6 | link:http://code.google.com/p/gerrit/downloads/detail?name=gerrit-full-2.5.2.war[http://code.google.com/p/gerrit/downloads/detail?name=gerrit-full-2.5.2.war] |
| 7 | |
| 8 | There are no schema changes from 2.5, or 2.5.1. |
| 9 | |
David Pursehouse | d33f9ff | 2013-02-13 10:00:21 +0900 | [diff] [blame] | 10 | However, if upgrading from any earlier version, follow the upgrade |
Edwin Kempin | d957bde | 2013-01-22 09:24:25 +0100 | [diff] [blame] | 11 | procedure in the 2.5 link:ReleaseNotes-2.5.html[Release Notes]. |
| 12 | |
| 13 | Bug Fixes |
| 14 | --------- |
| 15 | * Improve performance of ReceiveCommits for repos with many refs |
| 16 | + |
| 17 | When validating the received commits all existing refs were added as |
| 18 | uninteresting to the RevWalk. This resulted in bad performance when a |
| 19 | repository had many refs (>100000). Putting existing 'refs/changes/' |
| 20 | or 'refs/tags/' into the RevWalk is now avoided, which improves the |
| 21 | performance. |
| 22 | |
Edwin Kempin | b9ac243 | 2013-02-06 09:01:54 +0100 | [diff] [blame] | 23 | * Improve Push performance by discarding 'cache-automerge/*' refs |
| 24 | early in VisibleRefFilter |
| 25 | + |
| 26 | For a typical large Git repository, with many refs and lots of cached |
| 27 | merges, the push time goes down significantly. |
| 28 | |
Edwin Kempin | d957bde | 2013-01-22 09:24:25 +0100 | [diff] [blame] | 29 | * Don't display all files from a merge-commit when auto-merge fails |
| 30 | + |
| 31 | For merge commits Gerrit shows the difference to the automatic merge |
| 32 | result. The creation of the auto-merge result may fail, e.g. when the |
| 33 | merge commit has multiple merge bases (because JGit doesn't support |
| 34 | this case yet). In this case Gerrit was showing all files from the |
| 35 | merge commit. This caused several issues: |
| 36 | + |
| 37 | -- |
| 38 | ** the file list was too large for projects with a large number of |
| 39 | files |
| 40 | ** Gerrit would send too many false notification emails to users |
| 41 | watching changes under certain paths |
| 42 | ** both client and server needed a lot of resources in order to handle |
| 43 | such a large list of files |
| 44 | -- |
| 45 | + |
| 46 | Now the file list for a merge commit will be empty when the creation |
| 47 | of the auto-merge result fails. |
| 48 | |
| 49 | * link:http://code.google.com/p/gerrit/issues/detail?id=1726[issue 1726]: |
| 50 | Create ref for new patch set on direct push |
| 51 | + |
| 52 | If a change is in review and a new commit that has the Change-Id of |
| 53 | this change in its commit message is pushed directly, then a new patch |
| 54 | set for this commit is created and the change gets automatically |
| 55 | closed. The problem was that no change ref for this new patch set was |
| 56 | created and as result the change ref that was shown for the new patch |
| 57 | set in the WebUI, and which was contained in the patchset-created |
| 58 | event, was invalid. |
| 59 | |
Edwin Kempin | b9ac243 | 2013-02-06 09:01:54 +0100 | [diff] [blame] | 60 | * link:http://code.google.com/p/gerrit/issues/detail?id=1767[issue 1767]: |
| 61 | Remove wrong error message when pushing a new ref fails |
| 62 | + |
| 63 | If pushing a new ref was rejected because the user was not allowed to |
| 64 | create it the error message always told the user that he's missing the |
| 65 | 'Create Reference' access right. This message was incorrect in some |
| 66 | cases. Users that have the 'Create Reference' access right assigned |
| 67 | are e.g. not allowed to create the ref if: |
| 68 | + |
| 69 | -- |
| 70 | ** they are pushing an annotated tag without having the |
| 71 | 'Push Annotated Tag' access right |
| 72 | ** they are pushing a signed tag without having the 'Push Signed Tag' |
| 73 | access right |
| 74 | ** the project state is set to 'Read Only' |
| 75 | -- |
| 76 | + |
| 77 | Now the error message just says 'Prohibited by Gerrit'. This generic |
| 78 | error message is better than a more concrete error message which is |
| 79 | wrong in same cases because a wrong message is misleading and |
| 80 | confuses the user. |
| 81 | + |
| 82 | In addition the description of the 'Prohibited by Gerrit' error in the |
| 83 | documentation has been updated to explain some additional cases in |
| 84 | which the 'Prohibited by Gerrit' error occurs. |
| 85 | |
Edwin Kempin | d957bde | 2013-01-22 09:24:25 +0100 | [diff] [blame] | 86 | * link:http://code.google.com/p/gerrit/issues/detail?id=1444[issue 1444]: |
| 87 | Remove 'Mailing-List' header from sent emails |
| 88 | + |
| 89 | The non-standard 'Mailing-List' header that is included in the emails |
| 90 | sent by Gerrit isn't allowed by the Amazon Simple Email Service and is |
| 91 | now removed. |
| 92 | |
| 93 | * Improve SMTP client error messages |
| 94 | + |
| 95 | The wording of the error messages in the SMTP client was changed to |
| 96 | make it more clear at exactly what stage in the SMTP transaction the |
| 97 | server returned an error. Also the server's response text is now |
| 98 | always included. |
| 99 | + |
| 100 | In addition it is now ensured that already rejected recipients are |
| 101 | included in the error message when the server rejects the DATA |
| 102 | command. Without this there is no way of debugging rejected |
| 103 | recipients if all recipients are rejected since that typically |
| 104 | results in a DATA command rejection. Because some SMTP servers (e.g. |
| 105 | Postfix with the default configuration) delay rejection of HELO/EHLO |
| 106 | and MAIL FROM commands to the RCPT TO stage, this can happen not only |
| 107 | for bad recipients. |
| 108 | |
| 109 | * Allow time unit variables to be '0' |
| 110 | + |
| 111 | link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.5/config-gerrit.html[ |
| 112 | Gerrit Configuration parameters] that expect a numerical time unit as |
| 113 | value can now be set to '0'. |
| 114 | |
| 115 | * link:http://code.google.com/p/gerrit/issues/detail?id=1076[issue 1076]: |
| 116 | Fix CLA hyperlink on account registration page |
| 117 | + |
| 118 | The New Contributor Agreement hyperlink on the Account Registration page |
| 119 | was malformed. |
| 120 | |
| 121 | * Fix broken link to repo command reference |
| 122 | + |
| 123 | The link to the repo command reference in the 'repo upload' section of |
| 124 | the 'Uploading Changes' documentation was broken. |
David Pursehouse | 75013b8 | 2013-02-06 10:24:14 +0900 | [diff] [blame] | 125 | |
| 126 | * link:http://code.google.com/p/gerrit/issues/detail?id=1569[issue 1569]: |
David Pursehouse | 4d7ac77 | 2013-06-25 17:14:30 +0900 | [diff] [blame] | 127 | Fix unexpected behavior in the commit-msg hook caused by `GREP_OPTIONS` |
David Pursehouse | 75013b8 | 2013-02-06 10:24:14 +0900 | [diff] [blame] | 128 | + |
David Pursehouse | 4d7ac77 | 2013-06-25 17:14:30 +0900 | [diff] [blame] | 129 | If `GREP_OPTIONS` was set, it caused unexpected behavior in the |
David Pursehouse | 75013b8 | 2013-02-06 10:24:14 +0900 | [diff] [blame] | 130 | commit-msg hook. For example if it included a setting like |
| 131 | `--exclude=".git/*"` it caused a new `Change-Id` line to be appended |
| 132 | to the commit message on every amend. |
| 133 | + |
| 134 | `GREP_OPTIONS` is now unset at the beginning of the commit-msg script |
| 135 | to prevent such problems from occurring. |
| 136 | + |
| 137 | The `GREP_OPTIONS` setting in the user's environment is unaffected |
| 138 | by this change. |