famelo/gerrit

本包的最新版本(dev-master)没有提供许可证信息。

安装: 304

依赖: 3

建议: 0

安全: 0

星标: 3

关注者: 3

分支: 2

开放问题: 0

类型:typo3-flow-package

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

This package is auto-updated.

Last update: 2024-09-05 18:13:03 UTC


README

为包添加缺失的提交钩子和Gerrit远程配置

您可以使用 './flow gerrit:setup' 命令遍历所有包,并将提交钩子和/或远程配置添加到您的git配置中。

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

为分发进行自动 cherry-picking

为了使使用Flow进行分布式开发更容易,有一个命令 './flow gerrit:update',用于获取位于FLOW_PATH_ROOT目录下的名为'gerrit.json'文件中指定的所有ChangeId,例如,您的分发根文件夹。

此gerrit.json具有以下语法

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

示例

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

当您将这样的gerrit.json添加到您的分发中,您可以轻松使用

./flow gerrit:update

该命令现在将遍历所有定义的changeIds,并将它们应用于包。以下是运行上面gerrit.json示例命令的输出

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