blob: b55aedf11fd57301921d567c5448c14f2115f3f7 [file] [log] [blame]
Shawn O. Pearcebaf6e3a2010-08-23 08:34:03 -07001Release notes for Gerrit 2.1.5
2==============================
3
4Gerrit 2.1.5 is now available:
5
6link:http://code.google.com/p/gerrit/downloads/detail?name=gerrit-2.1.5.war[http://code.google.com/p/gerrit/downloads/detail?name=gerrit-2.1.5.war]
7
David Pursehouse4d7ac772013-06-25 17:14:30 +09008This is primarily a bug fix release to 2.1.4, but some additional
Shawn O. Pearcebaf6e3a2010-08-23 08:34:03 -07009new features were included so its named 2.1.5 rather than 2.1.4.1.
10
Shawn O. Pearce04bbac52010-08-23 09:31:29 -070011Upgrade Instructions
12--------------------
Shawn O. Pearcebaf6e3a2010-08-23 08:34:03 -070013
Shawn O. Pearce04bbac52010-08-23 09:31:29 -070014If upgrading from version 2.1.4, simply replace the WAR file in
15`'site_path'/bin/gerrit.war` and restart Gerrit.
16
17If upgrading from version 2.1.3 or earlier, stop Gerrit, use
18`java -jar gerrit.war init -d 'site_path'` to upgrade the schema,
19and restart Gerrit.
Shawn O. Pearcebaf6e3a2010-08-23 08:34:03 -070020
21New Features
22------------
23
24Web UI
25~~~~~~
26* issue 361 Enable commenting on commit messages
27+
28The commit message of a change can now be commented on inline, and
29even compared between patch sets, just like any other file contents.
30The message is presented as a magical file called 'Commit Message',
31in the first row of every change.
32
33* issue 312 Implement 'Restore Change' to undo 'Abandon Change'
34+
35Any user who can abandon a change (the change owner, project owner,
36or any site administrator) can now restore the change from Abandoned
37status back to Review in Progress.
38
39* issue 583 Enable/disable download protocols
40+
41The new download section in `gerrit.config` controls how the patch
42set download links are presented in the web UI. Administrators
43can use this section to enable `repo download`, `git://`, or to
44disable `http://` style URLs. This section replaces the older
45repo.showDownloadCommand.
46
47* issue 499 Display the size of a patch (lines added/removed)
48+
49A 'diffstat' is shown for each file, summarizing the size of the
50change on that file in terms of number of lines added or deleted.
51
52Email Notifications
53~~~~~~~~~~~~~~~~~~~
54* issue 452 Include a quick summary of the size of a change in email
55+
56After the file listing, a summary totaling the number of files
57changed, lines added, and lines removed is displayed. This may
58help reviewers to get a quick estimation on the time required for
59them to review the change.
60
61Bug Fixes
62---------
63
64Web UI
65~~~~~~
66* issue 639 Fix keyboard shortcuts under Chrome/Safari
67+
68Keyboard shortcuts didn't work properly on modern WebKit browsers
69like Chrome and Safari. We kept trying to blame this on the browser,
70but it was Gerrit Code Review at fault. The UI was using the wrong
71listener type to receive keyboard events in comment editors. Fixed.
72
73* Make 'u' go up to the last change listing
74+
75Previously the 'u' key on a change page was hardcoded to take
76the user to their own dashboard. However, if they arrived at the
77change through a query such as `is:starred status:open`, this was
78quite annoying, as the query had to be started over again to move
79to the next matching change. Now the 'u' key goes back to the
80query results.
81
82* issue 671 Honor user's syntax coloring preference in unified view
83+
84The user's syntax coloring preference was always ignored in the
85unified view, even though the side-by-side view honored it. Fixed.
86
87* issue 651 Display stars in dependency tables
88+
89The 'Depends On' and 'Needed By' tables on a change page did not
90show the current user's star settings, even though the star icon
91is present and will toggle the user's starred flag for that change.
92Fixed.
93
94Access Control
95~~~~~~~~~~~~~~
96* issue 672 Fix branch owner adding exclusive ACL
97+
98Branch owners could not add exclusive ACLs within their branch
99namespace. This was caused by the server trying to match the leading
100`-` entered by the branch administrator against patterns that did
101not contain `-`, and therefore always failed. Fixed by removing
102the magical `-` from the proposed new specification before testing
103the access rights.
104
105* '@' in ref specs shouldn't be magical.
106+
107The dk.brics.automaton package that is used to handle regular
108expressions on branch access patterns supports '@' to mean
109"any string". We don't want that behavior. Fixed by disabling
110the optional features of dk.brics.automaton, thereby making '@'
111mean a literal '@' sign as expected.
112
113* issue 668 Fix inherited Read Access +2 not inheriting
114+
115Upload access (aka Read +2) did not inherit properly from the parent
116project (e.g. '\-- All Projects \--') if there was any branch level
117Read access control within the local project. This was a coding
118bug which failed to consider the project inheritance if any branch
119(not just the one being uploaded to) denied upload access.
120
121Misc.
122~~~~~
123* issue 641 Don't pass null arguments to hooks
124+
125Some hooks crashed inside of the server during invocation because the
126`gerrit.canonicalWebUrl` variable wasn't configured, and the hook
127was started out of an SSH or background thread context, so the URL
128couldn't be assumed from the current request. The bug was worked
129around by not passing the `\--change-url` flag in these cases.
130Administrators whose hooks always need the flag should configure
131`gerrit.canonicalWebUrl`.
132
133* issue 652 Fix NPE during merge failure on new branch
134+
135Submitting a change with a missing dependency to a new branch
136resulted in a NullPointerException in the server, because the server
137tried to create the branch anyway, even though there was no commit
138ready because one or more dependencies were missing. Fixed.
139
140* Fix NPE while matching `file:^` pattern on deleted files
141+
142Sending email notifications crashed with NullPointerException if the
143change contained a deleted file and one or more users had a project
144watch on that project using a `file:^` pattern in their filter.
145Fixed.
146
147* issue 658 Allow to use refspec shortcuts for push replication
148+
149A push refspec of `refs/heads/\*` in replication.config is now
150supported as a shorthand notation for `refs/heads/\*:refs/heads/\*`.
151
152* issue 676 Fix clearing of topic during replace
153+
154The topic was cleared if a replacement patch set was uploaded without
155the topic name. The topic is now left as-is during replacement
156if no new topic was supplied. If a new topic is supplied, it is
157changed to match the new topic given.
158
David Pursehouse4d7ac772013-06-25 17:14:30 +0900159* Allow ; and & to separate parameters in gitweb
Shawn O. Pearcebaf6e3a2010-08-23 08:34:03 -0700160+
161gitweb.cgi accepts either ';' or '&' between parameters, but
162Gerrit Code Review was only accepting the ';' syntax. Fixed
163to support both.
164
165Documentation
166~~~~~~~~~~~~~
167* Fixed example for gerrit create-account.
168* gerrit.sh: Correct /etc/default path in error message
169
170Version
171-------
172
1732765ff9e5f821100e9ca671f4d502b5c938457a5