398 Commits

Author SHA1 Message Date
David Pursehouse
e55d199aee Merge branch 'stable-2.8'
* stable-2.8:
  Update replication plugin to latest revision
  Allow download schemes to support but not require authentication
  Don't mention label abbreviation in search documentation
  Don't mention Verified as a default label in search documentation
  Minor fixes in dev-plugin documentation
  Document how a plugin can force state update of UiAction

Change-Id: I9ba217e20291271bdb1ec6d579efe37f9efc91ba
2013-10-24 11:06:14 +09:00
David Pursehouse
5e48c19a34 Update replication plugin to latest revision
This updates the replication plugin to the latest revision
on the stable-2.8 branch, and adds the following change:

- Fix invalid syntax in SSH config file example

Change-Id: I79ac7cc93f14d9ca0dc6937f8e8cec6301301da2
2013-10-24 09:48:14 +09:00
David Pursehouse
ead4b18738 Update core plugins to latest revisions
This updates the core plugins to the latest revisions on their
master branch, adding the following changes:

All plugins:
- Update API version to 2.9-SNAPSHOT in pom.xml

Cookbook:
- Add example of getting plugin name injected

Replication:
- Delete the ReplicationType enum and simplify ReplicationState

Change-Id: If3af328a3e9be33e9182db75459b834ad44db83c
2013-10-23 18:31:39 +09:00
Shawn Pearce
a8bfab9d32 Update download-commands plugin
Change-Id: Ib439c2c8b6edc4c5393848ad986173fc55fcb679
2013-10-17 18:40:04 -07:00
Edwin Kempin
3e019c2a65 Update download-commands plugin
* Simplify logic in RepoCommand
* Fix `repo download project nn/p` formatting

Change-Id: Ia319abd27a73b311b158b9f2e2740acf4b767a16
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2013-10-17 19:35:57 +02:00
David Pursehouse
78e868ef89 Merge "Register core plugin that implements the standard download commands" 2013-10-17 02:24:56 +00:00
Edwin Kempin
7bfe1686e4 Register core plugin that implements the standard download commands
Change-Id: I07e7f9f0a7f68f3491d26afbacee4992c87e81c5
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2013-10-16 22:08:17 +02:00
David Pursehouse
df254424f0 Update the replication and reviewnotes plugins
This updates the plugins to versions that are adapted to the
simplified GitReferenceUpdatedListener.Event API.

Change-Id: I0d01639c4738945aafd3920acdfbe26cf23c176b
2013-10-16 10:22:37 +02:00
Edwin Kempin
de480c7fdc Update replication plugin to latest revision
* Add port to replication status and display path for local
  replication

Change-Id: I483b95255b4b7e15581836fba8bc3b4d69206b47
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2013-10-11 16:24:46 +02:00
Sasa Zivkov
2aec8a3d9f Update the reviewnotes plugin to the latest revision
Change-Id: I05a0b0040a63cad0bc0f7e6503aa7bc95c72db3a
2013-10-09 13:09:37 +02:00
David Pursehouse
d9692b8e88 Update the reviewnotes plugin to the latest revision
This adds the following commits:

- Fix note creation when the same commit exists in another Git repository.
- Fix committing the notes from the export command.

Change-Id: I7d679235da70ae0939e83ed11c0b2e8a753d8997
2013-10-08 19:00:02 +09:00
David Pursehouse
7d722ab812 Update the cookbook plugin
This adds the change:

- Add example of extending Gerrit's top menu item

Change-Id: Ia28dc6622732655411eaed84e4147c35b909a96f
2013-10-01 16:49:58 +09:00
Edwin Kempin
e6be2c5505 Update cookbook plugin to latest version
This revision adds:
- Extend Gerrit's top menu with plugin-owned entry

Change-Id: Iab0da66e9ecee990cb163e35110e5405054c32c5
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2013-09-30 16:29:32 +02:00
Sasa Zivkov
0f8d1b1083 Update plugins/replication and plugins/reviewnotes
Change-Id: I56542653bc9b1b49f91a668a12496804b84feefb
2013-09-27 10:23:05 +02:00
David Pursehouse
c254cb9982 Update cookbook plugin to latest revision
This revision adds:

- Fix document links
- Add UI action on the project page

Change-Id: I7b9c01bb5aa1027ba5dbe1e3503adb908f37d2b8
2013-09-27 15:47:37 +09:00
David Pursehouse
0921e11eb2 Update replication plugin to latest revision
This adds the commit to set the plugin's name in the
manifest.

Change-Id: Ib1d6db4bc1a88cea8b44f9f0acdafed53cf7c86b
2013-09-24 15:26:55 +09:00
Edwin Kempin
5ade5f5087 Update replication plugin
The replication is updated to include the following changes:
* a9fcff5 Create missing repositories on the remote site
* ad923e4 Support replication of project deletions

a9fcff5 is a change in behaviour of the replication plugin and a
warning about this should be added to the release notes.

Change-Id: Ic5c643c8a10b27e61e0a34fe15acfdc0cdec9c9d
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2013-09-20 09:08:24 +02:00
Dave Borowitz
9ef5abd5cf Merge branch 'stable-2.7'
* stable-2.7:
  Set version to 2.7
  Fix installation of plugins
  Fix change stuck in SUBMITTED state but actually merged
  Remove documentation links from admin page
  NPE when deleting draft patch set when previous draft already deleted
  Fix example for 'test-submit rule' in Prolog cookbook
  Mark ALREADY_MERGED changes as merged in the DB and run hooks

Conflicts:
	gerrit-acceptance-tests/pom.xml
	gerrit-antlr/pom.xml
	gerrit-cache-h2/pom.xml
	gerrit-common/pom.xml
	gerrit-extension-api/pom.xml
	gerrit-gwtdebug/pom.xml
	gerrit-gwtexpui/pom.xml
	gerrit-gwtui/pom.xml
	gerrit-gwtui/src/main/java/com/google/gerrit/client/admin/AdminConstants.properties
	gerrit-httpd/pom.xml
	gerrit-launcher/pom.xml
	gerrit-main/pom.xml
	gerrit-openid/pom.xml
	gerrit-patch-commonsnet/pom.xml
	gerrit-patch-jgit/pom.xml
	gerrit-pgm/pom.xml
	gerrit-plugin-api/pom.xml
	gerrit-plugin-archetype/pom.xml
	gerrit-plugin-gwt-archetype/pom.xml
	gerrit-plugin-gwtui/pom.xml
	gerrit-plugin-js-archetype/pom.xml
	gerrit-prettify/pom.xml
	gerrit-reviewdb/pom.xml
	gerrit-server/pom.xml
	gerrit-sshd/pom.xml
	gerrit-util-cli/pom.xml
	gerrit-util-ssl/pom.xml
	gerrit-war/pom.xml
	plugins/commit-message-length-validator
	plugins/replication
	plugins/reviewnotes
	pom.xml

Change-Id: Iacb961caf52032e7e445be9ed81376db849e171b
2013-09-18 13:13:29 -07:00
Dave Borowitz
01cea13727 Set version to 2.7
Change-Id: I49a7fc97fd6d4f199c25774faa50ec4a826ae64a
2013-09-18 13:05:11 -07:00
David Pursehouse
0030781c2e Update replication plugin to the latest revision
The latest revision includes:

- Serialize pushes to each destination URI

Change-Id: Iee3c77f671cb82f689868f0b0f2db0cde8c6dabf
2013-08-27 10:00:33 +09:00
David Pursehouse
8a2a7f62c1 Update cookbook plugin to the latest revision
Change-Id: I8c9695e41b88c3f9e6f9a4c7cf39e9bd67e3e57a
2013-08-21 09:49:10 +09:00
David Pursehouse
3aff0db1d9 Update cookbook plugin to the latest revision
Change-Id: Ie6c6acf5de454915426f1656e2ea77e3bfc860c6
2013-08-19 13:48:11 +09:00
Shawn Pearce
3d3c25864c Update plugins/cookbook-plugin
Change-Id: I8cc429a879a52a636f8ebe6bc679e9be505ef2c8
2013-08-18 16:40:08 -07:00
David Pursehouse
4a400c7ff7 Update cookbook plugin to the latest revision
Change-Id: I58138c3c4ba37d1865a4f45b1064900182962d87
2013-08-15 11:10:47 +09:00
David Pursehouse
7387f74496 Update replication plugin to the latest revision
To get the change:

- Rename @CommandMetaData(descr) to description

Change-Id: If77ee80bd84fc0b96d2d0d161fd543b4c0eb36ef
2013-08-13 15:34:46 +09:00
David Pursehouse
010c06b9e7 Replace helloworld plugin with cookbook plugin
Change-Id: I113d072da5120ea59154f1a709195de432143589
2013-08-13 11:41:58 +09:00
Shawn Pearce
8f7a964af9 Update replication and reviewnotes plugins
Change-Id: I5b164b2952671b0f915a9829d3fd2a884deb154d
2013-08-12 13:48:46 -07:00
David Pursehouse
18c5b602a7 Update replication plugin revision to get latest changes
The new revision includes the following changes:

- Introduce remoteNameStyle = basenameOnly

- Add retry counts to replication tasks so they can be viewed by
  show-queue

Change-Id: Ib13b956ecd36a5bcd7199f4490787871e60c89db
2013-08-12 10:05:26 +09:00
David Pursehouse
27d38cb464 Update replication plugin to latest revision
Change-Id: Id2660aaf21fbcad3d7296beaf884ebec81f74f53
2013-08-01 08:24:29 +09:00
Edwin Kempin
549dc2534a Fix revision of submodule for replication plugin
Change-Id: I181283bfe3a83266eed802182a653428bf31c50d
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2013-07-11 16:09:37 +02:00
David Pursehouse
52c6ceb906 Update plugin submodules to latest revisions
Update the plugins to get the latest changes.

Core plugins:
 - Add an 'About' section in the documentation

Helloworld:
 - Fix documentation structure
 - Add an 'About' section in the documentation

Change-Id: I3a51c8c097a760af08b272b7db8cbe29f06ab817
2013-07-11 17:40:08 +09:00
David Pursehouse
fe8e47221a Update revision of replication plugin
Update the revision of the replication plugin to get the
following changes:

- Make ${name} optional when replicating only a single repository

- Implement pattern-based project matching in replication.config

Change-Id: I5d9ed40f43dafc1c7b814f5d24ad171d06c67292
2013-07-08 12:11:49 +09:00
Shawn Pearce
007612b358 Update plugins to skip edits Maven required for 2.6
Change-Id: I25b3e1355d18b86e5327ce4a24f50d2dd748351a
2013-06-21 12:24:46 -07:00
Shawn Pearce
cee4e13ba3 Update plugins with fixed manifests
Change-Id: Ie4672d10615bef73b0e0b9514fb5b5ee587f4d50
2013-06-03 17:37:22 +02:00
David Pursehouse
13c027ed3c Update commit-message-length-validator plugin to latest
Update to include the commit:  "Allow to reject commits when subject
or line length exceeds limit".

Change-Id: I2722d5c00c5ad9e37b669f3c5c4a0c8ea2962f95
2013-05-31 05:05:22 +00:00
David Pursehouse
a8d38fb1f7 Add helloworld plugin as a git submodule
The helloworld plugin is used to demonstrate features of the
plugin API.

Add it as a submodule so it's included in the tree.  Thus we
can make sure it's always buildable against the latest Gerrit
code base.

Change-Id: I1450ce02d04cf213eaeaaca0386a357d99423c4a
2013-05-28 16:21:25 +09:00
Shawn Pearce
63207f0420 Fix missing deps on java_test() rules
Change-Id: I5de4de41364076aecdba397692ab188084f28b32
2013-05-17 11:09:00 -07:00
Shawn Pearce
6796c3f36b Merge "Minor cleanups on BUCK genrules" 2013-05-10 19:17:27 +00:00
Shawn Pearce
a0c9372baa Minor cleanups on BUCK genrules
Assume BUCK has applied my commit to use set -e when running a
genrule(). This allows us to use ';' in all genrule commands and
trust the build will stop if any of the single statement terminates
with a non-zero exit status.

$SRCDIR is a cleaner reference to the sources of a genrule(),
fixing an ugly reference to the (supposedly hidden) __srcs directory.

Add a comment about the version generator, BUCK wants to make genrule
output fully cacheable, which requires rules to be idempotent.

Change-Id: I938450ed81675330e979d76721e0ba971d30d0e2
2013-05-10 12:06:00 -07:00
Shawn Pearce
c072c61e38 Update plugins to include BUCK build rules
These plugins now define their gerrit_plugin() allowing the core
server to bundle them with `buck build :release`.

Change-Id: Ifa3e45bbfee18d0d86e516814bcce15f9f6476da
2013-05-10 11:34:58 -07:00
Shawn Pearce
0c2467a9bf Merge branch 'stable-2.7'
* stable-2.7:
  Fix spelling errors in access-control.txt
  Access control documentation: Formatting
  Access control documentation: Clean up of categories
  Access Control Documentation: Explain special and magic refs
  Set core plugins to correct revisions for 2.6-rc2
  Update developer instructions for cloning the Gerrit project
  Fix Windows build

Conflicts:
	Documentation/access-control.txt

Change-Id: I1ee212d357f0da6d006c5fef9427a4b7138c7536
2013-05-10 10:06:20 -07:00
Shawn Pearce
98cd151eb1 Merge branch 'stable-2.6' into stable-2.7
* stable-2.6:
  Fix spelling errors in access-control.txt
  Access control documentation: Formatting
  Access control documentation: Clean up of categories
  Access Control Documentation: Explain special and magic refs
  Set core plugins to correct revisions for 2.6-rc2
  Update developer instructions for cloning the Gerrit project
  Fix Windows build

Change-Id: Ic6a27ddffed8521f10aaca9ca6619840174be1ff
2013-05-10 09:58:57 -07:00
David Pursehouse
16c8148a0f Set core plugins to correct revisions for 2.6-rc2
Change-Id: I6292da3cbefd2b826f0d664a57a790c145d15a8f
2013-05-09 19:51:25 +01:00
Shawn Pearce
fd6bb9f6a5 Build with Buck
Implement a new build system using Buck[1], Facebook's
open source clone of Google's internal build system.

  Pros:
  - Concise build language
  - Test and build output is concise
  - Test failures and stack traces show on terminal
  - Reliable incrementals; clean is unnecessary
  - Extensible with simple blocks of Python
  - Fast
      buck: clean: 0.452s, full 1m21.083s [*], no-op:  7.145s,
      mvn:  clean: 4.596s, full 2m53.776s,     no-op: 59.108s,

      [*] full build includes downloading all dependencies,
          time can vary due to remote server performance.

  Cons:
  - No Windows support
  - No native Maven Central support (added by macros)
  - No native GWT, Prolog, or WAR support (added by macros)
  - Bootstrap of buck requires Ant

Getting started:

  git clone https://gerrit.googlesource.com/buck
  cd buck
  ant

  Mac OS X:
    PATH="`pwd`/bin:/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands:$PATH"

  Linux:
    PATH="`pwd`/bin:$PATH"

Importing into Eclipse:

  $ time buck build :eclipse
  0m48.949s

  Import existing project from `pwd`
  Import 'gerrit' (do not import other Maven based projects)
  Expand 'gerrit'
  Right click 'buck-out' > Properties
  Under Attributes check 'Derived'

  If the code doesn't currently compile but an updated classpath
  is needed, refresh the configs and obtain missing JARs:

  $ buck build :eclipse_project :download

Running JUnit tests:

  $ time buck test --all -e slow  # skip slow tests
  0m19.320s

  $ time buck test --all          # includes acceptance tests
  5m17.517s

Building WAR:

  $ buck build :gerrit
  $ java -jar buck-out/gen/gerrit.war

Building release:

  $ buck test --all && buck build :api :release
  $ java -jar buck-out/gen/release.war
  $ ls -lh buck-out/gen/{extension,plugin}-api.jar

Downloading dependencies:

  Dependencies are normally downloaded automatically, but Buck can
  inspect its graph and download missing dependencies so future
  compiles can run without the network:

  $ buck build :download

[1] http://facebook.github.io/buck/

Change-Id: I40853b108bd8e153cefa0896a5280a9a5ff81655
2013-05-09 13:40:36 +00:00
Shawn Pearce
9240c299f0 Begin 2.8
Change-Id: Ie0bc733853be435fba147dd64ef8cbc5a0027ee0
2013-05-06 19:39:10 -07:00
Shawn Pearce
ddf1ab4e73 Update core plugins to use same version of Gerrit
Change-Id: I6b305b17555f909a21db521f382f0414ddf3053e
2013-05-06 16:41:27 -07:00
Shawn Pearce
b0c599d1fd Ensure core plugins are bundled by Maven
Require the core plugins whenever a Gerrit build is run.
These are pulled into the Maven Reactor by being inside
of git submodules. Plugins can be omitted by passing a
-Dgerrit.plugins.skip=true flag on the command line.

Change-Id: I7246389bcae9e98d5f1d46208ff515855eb7c474
2013-05-06 15:36:46 -07:00
Shawn Pearce
bf8ebbe90a Ensure core plugins are bundled by Maven
Require the core plugins whenever a Gerrit build is run.
These are pulled into the Maven Reactor by being inside
of git submodules. Plugins can be omitted by passing a
-Dgerrit.plugins.skip=true flag on the command line.

Change-Id: I7246389bcae9e98d5f1d46208ff515855eb7c474
2013-05-06 14:35:50 -07:00