blob: 5bd6ca017a28031e546229d97bd71dfd45296c7a [file] [log] [blame]
Yuxuan 'fishy' Wang4f5ad9d2016-05-03 16:18:58 -07001= Release notes for Gerrit 2.0.11
Shawn O. Pearcec20e2832010-02-17 09:16:26 -08002
3Gerrit 2.0.11 is now available in the usual location:
4
Shawn Pearce6d7ebc62015-06-12 16:34:42 -07005link:https://www.gerritcodereview.com/download/index.html[https://www.gerritcodereview.com/download/index.html]
Shawn O. Pearcec20e2832010-02-17 09:16:26 -08006
7*WARNING: This version contains a schema change.*
8
9Apply the schema upgrade:
10----
11 java -jar gerrit.war --cat sql/upgrade009_010.sql | psql reviewdb
12----
13
Yuxuan 'fishy' Wang4f5ad9d2016-05-03 16:18:58 -070014== Important Notes
Shawn O. Pearcec20e2832010-02-17 09:16:26 -080015
Yuxuan 'fishy' Wang4f5ad9d2016-05-03 16:18:58 -070016=== Cache directory
Shawn O. Pearcec20e2832010-02-17 09:16:26 -080017
18Gerrit now prefers having a temporary directory to store a disk-based content cache. This cache used to be in the PostgreSQL database, and was the primary reason for the rather large size of the Gerrit schema. In 2.0.11 the cache has been moved to the local filesystem, and now has automatic expiration management to prevent it from growing too large. As this is only a cache, making backups of this directory is not required.
19
20It is suggested (but not required) that you enable this cache:
21----
22 mkdir $site_path/disk_cache
23 chown gerrituser $site_path/disk_cache
24 chmod 700 $site_path/disk_cache ; # just to be paranoid
25----
26The directory can also be placed elsewhere in the local filesystem, see `cache.directory` in the `gerrit.config` file.
27
28link:http://gerrit.googlecode.com/svn/documentation/2.0/config-gerrit.html[http://gerrit.googlecode.com/svn/documentation/2.0/config-gerrit.html]
29
Yuxuan 'fishy' Wang4f5ad9d2016-05-03 16:18:58 -070030=== Protocol change
Shawn O. Pearcec20e2832010-02-17 09:16:26 -080031
32The protocol between the browser based JavaScript and the server has changed. After installing 2.0.11 users need to load the site page again to ensure they are running 2.0.11 or later. Users can verify they have the new version by checking the version number in the footer in the lower right. Users who don't load the new version (e.g. are using a stale tab from a week ago) will see errors when trying to view patches.
33
Yuxuan 'fishy' Wang4f5ad9d2016-05-03 16:18:58 -070034== New Features
Shawn O. Pearcec20e2832010-02-17 09:16:26 -080035
36* GERRIT-8 Add 'Whole File' as a context preference in the user s...
37* GERRIT-9 Honor user's "Default Context" preference
38* GERRIT-14 Split patch view RPCs into two halves
39* GERRIT-61 Database error in side by side view
40* GERRIT-156 Rewrite the side-by-side and unified diff viewers
41+
42The side by side and unified patch viewers have been completely rewritten. Gerrit now honors the user's Default Context setting (from My > Settings) in both the side by side and the unified patch view. A new "Whole File" setting is also available, showing the complete file.
43
44* GERRIT-154 Add the branch name to the beginning of the subject li...
45* Sending mail when merge failed due to path conflict, m...
46+
47Some improvements have been made with regards to the emails sent by Gerrit.
48
49* Configure the JGit WindowCache from $site_path/gerrit....
50* Document the new gerrit.config file
51+
52Gerrit now supports a Git-style "$site_path/gerrit.config" configuration file. Currently this supports configuration of the various memory caches, including control over JGit's pack file cache. See the updated documentation section for more details:
53link:http://gerrit.googlecode.com/svn/documentation/2.0/config-gerrit.html[http://gerrit.googlecode.com/svn/documentation/2.0/config-gerrit.html]
54
55* Add "gerrit show-caches" to view cache statistics
56+
57There is a new administrative command over SSH called "gerrit show-caches" which displays current cache statistics for the various caches within the Gerrit memory space.
58
59* Expand local part emails when creating new changes
60+
61Simple DWIMery: users can now do `repo upload --reviewer=who` to have the reviewer email automatically expand according to the email_format column in system_config, e.g. by expanding `who` to `who@example.com`.
62
Yuxuan 'fishy' Wang4f5ad9d2016-05-03 16:18:58 -070063== Bug Fixes
Shawn O. Pearcec20e2832010-02-17 09:16:26 -080064
65* GERRIT-81 Can't repack a repository while Gerrit is running
66+
67Running "git repack", "git gc" or "git fetch" in a repository owned by Gerrit is now safe while Gerrit is running.
68
69* GERRIT-165 Don't create new user accounts as full name = "null nu...
70+
71New users coming from Google Accounts OpenID provider where given a full name of "null null" rather than "Anonymous Coward".
72
73* Honor account.preferred_email when checking co...
74+
75Service users created by manually inserting into the accounts table didn't permit using their preferred_email in commits or tags; administrators had to also insert a dummy record into the account_external_ids table. The dummy account_external_ids record is no longer necessary.
76
Yuxuan 'fishy' Wang4f5ad9d2016-05-03 16:18:58 -070077== Other Changes
Shawn O. Pearcec20e2832010-02-17 09:16:26 -080078* Start 2.0.11 development
79* Include the 'Google Format' style we selected in our p...
80* Upgrade JGit to v0.4.0-310-g3da8761
81* Include JGit sources when building GWT code
82* Cleanup classpath and use source JARs to build JavaScr...
83* Remove the ImportGerrit1 command line utility
84* Remove EncryptContactInfo helper program
85* Add custom serialization for jgit.diff.Edit
86* Add Ehcache 1.6.0-beta5 to our dependency list
87* Start/stop Ehcache when GerritServer starts/stops
88* Cache OpenID discovery results inside of Ehcache
89* Cache JGit FileHeader and EditList inside of Ehcache
90* Store FileHeader and EditList in Ehache during patch s...
91* Remove the now dead patch_contents table from the data...
92* Fix "null null" user names during schema upgrade from ...
93* Work around asciidoc 8.2.2 not including our APLv2 lic...
94* Remove unused logger from SshServlet
95* Reuse is administrator test in admin SSH commands
96* Use common PrintWriter construction in command impleme...
97* Refactor gerrit flush-caches to just flush everything ...
98* GERRIT-166 Move the SSH key cache into Ehcache
99* Change the diff cache serialization of JGit ObjectId i...
100* Fix git_base_path documentation in config-gerrit
101* Clarify the default max_session_age in config-gerrit
102* Enhance the site_path entry in config-gerrit
103* Clarify the caching of static assets under $site_path/...
104* Minor grammar fixes in the Google Analytics documentat...
105* Document that replication honors StrictHostKeyChecking
106* Document how ~/.ssh/known_hosts is used during replica...
107* Document how ssh-agent cannot be used for replication
108* Fix git_base_path references in project-setup
109* Cleanup project setup documentation
110* Expand the config-contact documentation to describe th...
111* Clarify the gitweb integration documentation
112* Minor corrections in install documentation
113* Reformat the config-gerrit page to free up section hea...
114* Enable table of contents in documentation files
115* Add the source code version number to documentation
116* More reformatting of the config-gerrit page
117* Cleanup formatting references for file system path var...
118* Cleanup the documentation index
119* Kill the feature roadmap in the documentation
120* Only use the disk cache directory if we can write to it
121* Change the title of the installation guide
122* Note in the developer install guides that you need to ...