famelo/gerrit

There is no license information available for the latest version (dev-master) of this package.

Installs: 304

Dependents: 3

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 2

Open Issues: 0

Type:typo3-flow-package

dev-master 2013-06-05 13:56 UTC

This package is auto-updated.

Last update: 2022-01-05 12:32:25 UTC


README

Add missing commit-hooks and Gerrit Remotes to Packages

You can use the './flow gerrit:setup' command to walk through all Packages and add commit-hooks and/or remotes for gerrit to your git configurations:

./flow gerrit:setup
Added commit-msg hook to add ChangeId to: /Users/mneuhaus/Sites/FLOW3/foo/Packages/Application/Famelo.Gerrit/.git

Automatic Cherry-Picking for Distributions

To make the distributed development with Flow easier there is a command './flow gerrit:update' to fetch all ChangeId's specified in a file called 'gerrit.json' on the FLOW_PATH_ROOT, e.g. your Distributions root folder.

This gerrit.json has the following Syntax:

{
  "Package.Key": {
    "Changeset Description for better readability": "ChangeId"
  }
}

Example

{
  "TYPO3.Flow": {
    "[FEATURE] Allow custom custom configuration files in ConfigurationManager": "11982",
    "[WIP][FEATURE] Improve resolving of view": "16392"
  }
}

When you've added such a gerrit.json to your distribution, you can easily use:

./flow gerrit:update

This command will now go through all defined changeIds and apply them to the Packages. Here's the output of running the command on that gerrit.json example above:

Fetching: [FEATURE] Allow custom custom configuration files in ConfigurationManager
From git://git.typo3.org/FLOW3/Packages/TYPO3.FLOW3
 * branch            refs/changes/82/11982/7 -> FETCH_HEAD
[master 1992275] [FEATURE] Allow custom custom configuration files in ConfigurationManager
 3 files changed, 128 insertions(+), 32 deletions(-)

Fetching: [WIP][FEATURE] Improve resolving of view
From git://git.typo3.org/FLOW3/Packages/TYPO3.FLOW3
 * branch            refs/changes/92/16392/3 -> FETCH_HEAD
[master 71ba5a9] [WIP][FEATURE] Improve resolving of view
 17 files changed, 449 insertions(+), 15 deletions(-)
 create mode 100644 Classes/TYPO3/Flow/Mvc/Exception/NoSuchViewException.php
 create mode 100644 Configuration/Testing/Views.yaml
 create mode 100644 Resources/Private/Templates/Tests/Functional/Mvc/Fixtures/ViewsConfigurationTest/ChangedOnActionLevel.html
 create mode 100644 Resources/Private/Templates/Tests/Functional/Mvc/Fixtures/ViewsConfigurationTest/ChangedOnControllerLevel.html
 create mode 100644 Resources/Private/Templates/Tests/Functional/Mvc/Fixtures/ViewsConfigurationTest/ChangedOnPackageLevel.html
 create mode 100644 Resources/Private/Templates/Tests/Functional/Mvc/Fixtures/ViewsConfigurationTest/First.html
 create mode 100644 Resources/Private/Templates/Tests/Functional/Mvc/Fixtures/ViewsConfigurationTest/FirstChanged.html
 create mode 100644 Resources/Private/Templates/Tests/Functional/Mvc/Fixtures/ViewsConfigurationTest/RenderOther.html
 create mode 100644 Resources/Private/Templates/Tests/Functional/Mvc/Fixtures/ViewsConfigurationTest/Second.html
 create mode 100644 Resources/Private/Templates/Tests/Functional/Mvc/Fixtures/ViewsConfigurationTest/Widget.html
 create mode 100644 Tests/Functional/Mvc/ViewsConfiguration/Fixtures/Controller/ViewsConfigurationTestAController.php
 create mode 100644 Tests/Functional/Mvc/ViewsConfiguration/Fixtures/Controller/ViewsConfigurationTestBController.php
 create mode 100644 Tests/Functional/Mvc/ViewsConfiguration/Fixtures/TemplateView.php
 create mode 100644 Tests/Functional/Mvc/ViewsConfiguration/ViewsConfigurationTest.php