195 Commits

Author SHA1 Message Date
David Pursehouse
b0a15cfb64 Merge "Bump GWT version to 2.6.1" 2014-05-28 01:07:16 +00:00
David Pursehouse
34dd582e59 Merge branch 'stable-2.9'
* stable-2.9:
  Upgrade gwtorm to 1.11

Conflicts:
	lib/BUCK

Change-Id: I29b5758c83c820749f54c1dcd072f562b0260209
2014-05-28 09:39:10 +09:00
Dave Borowitz
c8c0fcda27 Documentation: Upgrade to Lucene 4.8
Change-Id: I259b29d6083cd2a479c417170d6c90c7c42c3b05
2014-05-28 00:31:51 +00:00
Michael Zhou
38214b31db Bump GWT version to 2.6.1
Change-Id: I426f9ae884295d95c51e2deb23cdb768ceb93dee
2014-05-27 14:59:04 -04:00
Edwin Kempin
c96c284b28 Upgrade gwtorm to 1.11
This version of gwtorm contains an important bug-fix that ensures that
"LIMIT ?" is not omitted in generated queries [1]. This can improve the
performance of such queries by a large factor.

[1] https://gerrit-review.googlesource.com/57216

Change-Id: Ibd0d3918629b2901288de6dd2e85489e4503091a
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-05-26 17:14:00 +02:00
Jeff Davidson
45d0a772e1 Add search fields for # of changed lines.
Based off https://gerrit-review.googlesource.com/#/c/52190, but
implementing the final suggestion of indexing raw delta counts and
allowing arbitrary range queries off of those.

Also upgrade Lucene to 4.8.1 as this was released since the last
schema change (which was on 4.7.0).

Change-Id: Ia8a677e71e133f68eced4c5394df1d23efe7f12a
2014-05-23 10:16:15 -07:00
Shawn Pearce
4d483da8d2 Merge changes Ia6447e62,Ic09dc032,I7f1ee1d6,I26fd741d,I1f13f4d2
* changes:
  Buck: Rename gwtxml to gwt_xml in gwt_module()
  Buck: Omit default values to gwt_binary() rule
  Buck: Make gwt_module() rule more pythonic
  Buck: Merge deps and compile_deps parameters in gwt_module() rule
  Update Buck and use gwt_binary()
2014-05-19 19:30:04 +00:00
Shawn Pearce
06e069cfcc Update Buck and use gwt_binary()
Migrate gwt build tool chain to built in gwt_binary() rule [1].

[1] https://github.com/facebook/buck/issues/109

Change-Id: I1f13f4d29864bc7e7278f8a2b2e39c882acf44aa
2014-05-19 11:41:31 -07:00
David Ostrovsky
c376f976e9 Bump guava version to 17.0
Change-Id: I60015dd0d75ca0e13079186346d3089f4c8b9a52
2014-05-14 17:04:46 +00:00
David Pursehouse
b9f568523e Merge branch 'stable-2.9'
* stable-2.9:
  Describe 'No Differences' label in review UI documentation
  Describe red bar for line gaps in review UI documentation
  Link new review UI documentation from 2.9 release notes
  Add 'View Plugins' global capability that allows to list plugins
  Keep new draft comment expanded if expand all comments is set
  Allow to download reposize.sh script from Gerrit
  Link new review UI documentation from new change screen welcome popup
  Document major differences between old and new review UI
  Describe keyboard shortcuts in review UI documentation
  Describe navigation in patch file in review UI documentation
  Describe Vim-like search in review UI documentation
  Upgrade jgit to v3.4.0.201405051725-m7
  Link 2.8.5 release notes from 2.9 release notes
  Review UI docs: Update screenshot about navigation to show all arrows
  Review UI Docs: Remove note about double-click not adding new comments
  Describe diff preferences in review UI documentation
  Add new screenshot that shows the result after replying with done
  Describe navigation between patches in review UI documentation
  Describe patch set selection and patch download in review UI docs

Conflicts:
	lib/jgit/BUCK

Change-Id: I3b63776c5eed46406c93996b190f968e294f84eb
2014-05-12 12:33:42 +09:00
Edwin Kempin
e12d850f3b Upgrade jgit to v3.4.0.201405051725-m7
This jgit milestone contains a bug-fix that fixes
MissingObjectExceptions in Gerrit.

[1] https://git.eclipse.org/r/21094

Bug: issue 2025
Change-Id: I57e95d09e87a0eca53735638da2a0ebbf30d9349
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-05-09 15:52:07 +02:00
Shawn Pearce
a11a60d199 Update Apache Velocity to 1.7
Change-Id: Iedb18e09b6f78426be30a9b616d00e69b0b47d9f
2014-05-05 15:20:28 -07:00
Shawn Pearce
c798b4cc20 Merge "Add support for SAP MaxDB" 2014-05-02 17:44:07 +00:00
Shawn Pearce
62cde681b0 Merge "Don't try to index empty documentation txt files" 2014-05-01 19:56:56 +00:00
David Ostrovsky
4a3f51a8e0 Buck: Strip SNAPSHOT suffix in artifact names only for GERRIT repositories
Maven artifact names on Google bucket replacing SNAPSHOT suffix with
timestamp. 731967591ef98ab3c94691ba9dc0f217630dda76 changed this by
preserving the SNAPSHOT suffix. This broke fetching of gwtorm and
gwtjsonrpc and was reverted by 731967591ef98ab3c94691ba9dc0f217630dda76.

This change fixes this for both worlds: stripping it for GERRIT and
GERRIT_API Maven repositories but preserving it for the rest.

Test plan:

maven_jar() is working as expected for the both worlds:

* gwtorm:gwtorm:1.10-SNAPSHOT-20140310.015132-1 (repo = GERRIT)
* org.eclipse.jgit:org.eclipse.jgit:3.4.0-SNAPSHOT (repo = MAVEN_LOCAL)

Change-Id: I5357abe9ad6a40538c444ad70016c8c6d75d8ff3
2014-05-01 08:57:12 +00:00
Shawn Pearce
5478148f6f SideBySide2: Add syntax highlighting for 18 more languages
Include more languages into the CM3 mapping supported by Gerrit:

* coffeescript
* d
* diff
* dtd
* erlang
* gas
* gfm (GitHub Flavored Markdown)
* haskell
* lua
* markdown
* php
* pig
* r
* scheme
* smalltalk
* tcl
* verilog
* yaml

Change-Id: Ie3cc3657183a475fb71a71e0fe35be848deb985f
2014-04-30 19:31:37 +00:00
Edwin Kempin
1f7782e8ec Don't try to index empty documentation txt files
If a documentation txt file has no content, parsing the document title
from it in the DocIndexer fails with a NullPointerException:

  Exception in thread "main" java.lang.NullPointerException
    at java.util.regex.Matcher.getTextLength(Matcher.java:1234)
    at java.util.regex.Matcher.reset(Matcher.java:308)
    at java.util.regex.Matcher.<init>(Matcher.java:228)
    at java.util.regex.Pattern.matcher(Pattern.java:1088)
    at DocIndexer.index(DocIndexer.java:117)
    at DocIndexer.invoke(DocIndexer.java:86)
    at DocIndexer.main(DocIndexer.java:163)

Change-Id: Idb4b808847d326ba49c9a2494a95b1cad8eb9406
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-04-29 14:40:21 +02:00
David Ostrovsky
46dbd7d979 Bump servlet API to 8.0.5
Change-Id: Ic812ac12efb4a7189b1bd9827a353051b7f14211
2014-04-27 11:33:02 +02:00
David Ostrovsky
e73ae61339 Apply "type inference for generic instance creation" Java 7 feature
Change-Id: Ia14802c903ca67b9d94dc6038d70b0e9644bc621
2014-04-26 15:27:57 +02:00
Dariusz Luksza
011cfedc61 Expose Jetty JMX extensions
Jetty by default provides set of MBeans that can be registered in JMX.
This patch adds new configuration option called httpd.registerMBeans, by
default set to false, to control this behavior.

Change-Id: I3771ed3bb755240d7d90e9f1f1d7e7f84ff33ce3
Signed-off-by: Dariusz Luksza <dariusz@luksza.org>
2014-04-25 16:13:11 +02:00
Shawn Pearce
233e298f0b Merge branch 'stable-2.9'
* stable-2.9:
  SideBySide2: Fix failure to load from "ISE EditIterator out of bounds"
  Explain in project owner guide how other tools can be integrated
  Add section about continuous integration to project owner guide
  Add section about download commands to project owner guide
  Improve/extend documentation about branch administration
  Describe issue tracker system integration in project owner guide
  Remove "Click to" from topic edit button's tooltip
  Fix: wrongly throw 'commit already exists' exception
  Update sshd to 0.11.0
  Bump SSHD version to 0.10.1 and enable nio2 backend
  Add missing article "the" in access-control.txt
  Add a section about project dashboards to project owner guide
  Add section about email notifications to project owner guide
  Describe labels and submit rules in project owner guide
  Discontinue comment visibility strategy for new change screen

Conflicts:
	lib/mina/BUCK

Change-Id: Icc05236165b825001bb4821ed0fa9a4e3a3b7b7b
2014-04-23 21:33:30 -07:00
Shawn Pearce
d363fa34cd Merge branch 'stable-2.8' into stable-2.9
* stable-2.8:
  SideBySide2: Fix failure to load from "ISE EditIterator out of bounds"
  Remove "Click to" from topic edit button's tooltip
  Fix: wrongly throw 'commit already exists' exception
  Update sshd to 0.11.0
  Bump SSHD version to 0.10.1 and enable nio2 backend

Conflicts:
	gerrit-gwtui/src/main/java/com/google/gerrit/client/change/Topic.ui.xml

Change-Id: I63c1e12bbd413a8e212de5b2a8cf71fa2a2ce52d
2014-04-23 21:23:51 -07:00
David Pursehouse
c31e17f005 Update sshd to 0.11.0
Fixes a few issues including a null pointer exception [1] that causes
ssh commands to hang.

It also adds server driven rekeying after 1G bytes of data transferred,
which is a useful security feature.

[1] https://issues.apache.org/jira/browse/SSHD-307

Change-Id: I441995eaf76e4fe53f7991f5aef00e062900791b
2014-04-23 10:39:42 +09:00
David Ostrovsky
b9c66ea380 Bump SSHD version to 0.10.1 and enable nio2 backend
46f8488a78742799a4f5f781279c8955460e7964 removed nio2 backend because of
a bug [1].  Given that the bug is fixed and released, enable it again.

Another problem was also fixed and released [2].

Upgrade to the official version 0.10.1 makes Gerrit's own custom patch of
SSHD and hosting it on Google bucket unnecessary.

[1] https://issues.apache.org/jira/browse/SSHD-252
[2] https://issues.apache.org/jira/browse/SSHD-255

Bug: Issue 2406
Change-Id: I6668f6194427f153e1982e14b3936d2f3132fa7d
2014-04-23 10:39:23 +09:00
David Ostrovsky
a3892f5a7f Bump Jcraft SSH library to 0.1.51
ChangeLog claims that new release fixes sporadic "verify: false" failures.

Change-Id: I1deba0b20dd713c0a9d2ed53b1751dbd078094ab
2014-04-21 09:40:59 +02:00
Dave Borowitz
ebeb4a8e2a Update JGit to get latest archive format registration fix
Change-Id: Ie62d825603c0aa091bf79972804f4128ca067380
2014-04-16 15:29:05 -07:00
Stefan Lay
3e8dee2861 Add support for SAP MaxDB
SAP MaxDB (http://maxdb.sap.com/) is now supported as a database.

Depends-On: I9385bafe481152ce0c1471f2a7f89b1db5abac80
Change-Id: Iae2ad25a3db3a1069b80cf5733c92882da86e404
2014-04-11 16:43:16 +02:00
David Ostrovsky
3f3e9ad20c Remove unnecessary reference to $SRCDIR in Buck genrules
In new buck version `$SRCDIR` is not necessary any more.  Buck now
always runs genrule relative to the $SRCDIR link forest.

Change-Id: Iee88bb575c7baa62bc087527927be5347a7f8f95
2014-03-26 18:20:13 -07:00
Dave Borowitz
8332a8f4fa Upgrade documentation Lucene version to 4.7
Change-Id: If101ff67f0489e8b9d1211d37680c5b32831043c
2014-03-25 16:39:00 -07:00
Dave Borowitz
4aed07b7ce Add a "projects" field for searching projects by prefix
Index alongside the "project" field, which is an exact match field,
since we do not assume index implementations can search exact match
and prefix on the same field. We do not want to modify the existing
"project" to return prefixes.

Upgrade Lucene to 4.7.0, as this was released since the last schema
change.

Change-Id: I7c3379c087fc54af3e5790cb875a5e676e674338
2014-03-25 16:38:59 -07:00
Christian Aistleitner
e362959d05 Add test infrastructure for tests that use logging and mocking
Change-Id: I5a38a5fd3256ca05e91d234c2bec7d18c06a75a2
2014-03-25 16:30:01 +00:00
David Ostrovsky
47a887cd96 Update log4j and slf4j to the latest released versions
Change-Id: I3ed005d465b9f11bc322ddc4e4bf545b21f13781
2014-03-25 16:06:53 +00:00
David Pursehouse
4e3db18a7d Merge "Bump SSHD version to 0.10.1 and enable nio2 backend" 2014-03-24 19:01:31 +00:00
David Pursehouse
f84cee2a64 Merge "Buck: Make bin_jar depend on src_jar" 2014-03-24 18:26:23 +00:00
David Ostrovsky
4bdde2bab4 Buck: Make bin_jar depend on src_jar
In upstream Buck's change 4addffb6bf8b9bc4123811a2739d20f25a8a927e:
... convert `HasJavaSrcs` and `SrcsAttributeBuilder` to using `Paths`
`sourceJar` parameter to prebuilt_jar rule was converted to path instead
of string.  Source Jar must be prefetched together with binary artifact.

Change-Id: I94641c1b31786ec9ee27d19bcf5b8a7a9104bd31
2014-03-24 18:18:24 +00:00
David Pursehouse
9b84fc3f50 Update gwtorm to version 1.9
Updates the versions of protobuf, asm and guava libraries to
synchronize with the versions used in GWT 2.6.0

Change-Id: Id1badda0d0f24f6022404be479d4681560ed0eda
2014-03-22 21:06:19 +00:00
David Pursehouse
3b22674ba6 Revert "Buck: Preserve SNAPSHOT suffix in Maven artifact names"
This prevents gwtorm snapshots from being downloaded from the
Gerrit maven repository.

This reverts commit 731967591ef98ab3c94691ba9dc0f217630dda76.

Change-Id: I17aad32606d4afb1c0654ffca0747f660c148520
2014-03-22 07:45:52 -07:00
David Ostrovsky
dc7318b8ee Bump SSHD version to 0.10.1 and enable nio2 backend
46f8488a78742799a4f5f781279c8955460e7964 removed nio2 backend because of
a bug [1].  Given that the bug is fixed and released, enable it again.

Another problem was also fixed and released [2].

Upgrade to the official version 0.10.1 makes Gerrit's own custom patch of
SSHD and hosting it on Google bucket unnecessary.

[1] https://issues.apache.org/jira/browse/SSHD-252
[2] https://issues.apache.org/jira/browse/SSHD-255

Bug: Issue 2406
Change-Id: I6668f6194427f153e1982e14b3936d2f3132fa7d
2014-03-22 07:26:02 +00:00
David Ostrovsky
2919972ce4 Enable disabled gwtui tests
a283507bccbd408540ae1baf75eb80eb59dce031 disabled EditIteratorTest due
to gwt-test-utils uncompatibility with new GWT 2.6 release.

After fixing the compatibility problem in [1] the tests can be enabled
again.

[1] https://github.com/gwt-test-utils/gwt-test-utils/issues/62

Change-Id: I1f93e6422a1ae60d66f4d8b4abac23b6a1acb4f9
2014-03-10 06:22:39 +00:00
Shawn Pearce
65df1358a1 Merge "Validate email address when adding email or creating account" 2014-03-08 00:36:40 +00:00
Saša Živkov
ceca56fa87 Bump JGit version to 3.3.0
Change-Id: I30c94c7b98529c503a2baf1cf3b6efcb36b60513
2014-03-07 16:38:59 +01:00
Shawn Pearce
5492217ea1 Merge "Bump GWT version to 2.6.0" 2014-03-06 20:29:54 +00:00
David Ostrovsky
56d89b458a Bump GWT version to 2.6.0
Change-Id: I3353e086112bd1bc4ac9bb2adc35110324c70059
2014-03-05 06:44:24 +00:00
David Ostrovsky
51b373679e CM3: Add support for dark themes
84a66d82d36d554c1844acff11d1a62f10c174ed added support for light and
dark themes, but dark themes weren't enabled, as diff styles have
to be adjusted to correspond with dark colors.

101a8c4b65ebee4d54afddad10db05f5b9698ba9 reverted the preparation
for dark themes support.

This change enables support for subset of dark themes and switch
dynamicaly the diff styles to dark colors, when dark theme was
selected.

Change-Id: Ic220baf8f19366c04520b61e893a0d11912805ef
2014-03-04 19:51:49 +01:00
David Ostrovsky
fbf6b7dabd Download commands: Add JGit archive
Since JGit 3.1 archive command was implemented. Add it to download
drop down as new line.

The following libraries are introduced in this change:

* jgit-archive (Apache 2)
* commons-compress (Apache 2)
* tukaani-xz (Public domain)

Change-Id: I5f61aac8c434414c73585a9320e84f4430dd111d
2014-03-03 23:34:46 +00:00
Dave Borowitz
5598c86c74 Update gwtjsonrpc to 1.5
Change-Id: Ic1dc85f87afedb2506e8264a0ca4fd5e749a5600
2014-02-24 14:49:26 -08:00
Shawn Pearce
070cc0ee52 Update JGit to 3.2.0.201312181205-r.61-gf2f24a3
This fixes a long standing bug in the copy and rename detection
code where a copied file that is also updating its mode loses its
copy status and breaks the diff display.

Change-Id: I15c4d61ff1489e2c9b17e3b9ca76d9dcc98e26a8
2014-02-18 17:00:14 -08:00
Edwin Kempin
a9abdf4589 Validate email address when adding email or creating account
This checks that the email address has a valid format.

Change-Id: I1f8d95dd9b02e720996bd15cca093ca55b5e4597
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-02-07 10:02:33 +01:00
David Ostrovsky
07df95936f Buck: add local_jar() to link direct to local Maven targets
Change-Id: Ief0224e334e3e9ec040f4d4bca6060775c3e56f1
2014-02-03 18:17:31 +01:00
Dave Borowitz
02bf1cd82a Upgrade guava to 16.0
Change-Id: I810574fe5f6ed5c397b595092105d970eebfc3a2
2014-01-30 20:28:00 +00:00