有什么可以作为 git 的 gerrit 颠覆的东西吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/13395854/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 07:45:06  来源:igfitidea点击:

Is there anything for subversion as gerrit for git?

gitsvngerrit

提问by Alvin Cao

Gerrit is useful but it's only for git. I want to setup something like it, but for subversion. Is there any software doing this job?

Gerrit 很有用,但仅适用于 git。我想设置类似的东西,但为了颠覆。有没有做这个工作的软件?

采纳答案by John Szakmeister

For which part: code review or hosting or both?

对于哪一部分:代码或托管或两者兼而有之?

For code reviews, Review Boardworks well. It's not perfect, but I've used it to great success on a couple of projects. It doesn't deal at all with hosting or access controls though.

对于代码,委员会运作良好。它并不完美,但我已经在几个项目中使用它取得了巨大的成功。不过,它根本不涉及托管或访问控制。

For hosting, you might try usvn, SVNManager, or svn-access-manager. I've not really used any of these tools, so I can't really comment on their usefulness.

对于托管,您可以尝试使用usvnSVNManagersvn-access-manager。我没有真正使用过这些工具中的任何一个,所以我不能真正评论它们的用处。

回答by uncletall

You can try using phabricator. It can be used for SVN and Git. It does a lot more but it does provide code review (before) and code audit (after).

您可以尝试使用phabricator。它可用于 SVN 和 Git。它做的更多,但它确实提供了代码(之前)和代码审计(之后)。

I have been evaluating Gerrit, Reviewboard and Phabricator myself and have not yet decided which way to go.

我自己一直在评估 Gerrit、Reviewboard 和 Phabricator,还没有决定走哪条路。

A quick summary

快速总结

Gerrit

格里特

  1. Used by Android for example, so can't be bad

  2. Supports only Git

  3. Review is created by pushing to a special branch

  4. Two methods of voting, verified (by Jenkins for example) and code review

  5. After review the change can be pushed directly to the master branch by Gerrit

  6. Comprehensive access control mechanism to protect the repository

  7. UI not so attractive but fast, shows one file at the time

  8. As it only shows one file at the time it has a nice tick box next to the files you have reviewed

  9. Able to trigger Jenkins for verification of the patch

  10. Written in Java (.war)

  11. Very active development

  1. 例如被Android使用,所以不会差

  2. 仅支持 Git

  3. 评论是通过推送到一个特殊的分支来创建的

  4. 两种投票方式,验证(例如通过 Jenkins)和代码

  5. 后可以通过 Gerrit 直接将更改推送到 master 分支

  6. 全面的访问控制机制来保护存储库

  7. UI 不那么吸引人但速度很快,一次显示一个文件

  8. 由于它当时只显示一个文件,因此在您查看过的文件旁边有一个不错的复选框

  9. 能够触发 Jenkins 验证补丁

  10. 用 Java (.war) 编写

  11. 非常活跃的发展

Reviewboard

评论板

  1. Used by Apache for example, so can't be bad

  2. Supports any modern SCM

  3. Pre commit and post commits reviews are created using a Python script

  4. After pre commit review you can commit your code to the repository, however this is difficult to verify and can be by passed

  5. No access control mechanism for repository as it is not under its control

  6. UI is nice, but very slow when loading diffs. It can take a fair bit of time on my test system to load the file differences while Gerrit and Phabricator are much faster

  7. Written in Python

  8. Active development

  1. 例如被 Apache 使用,所以不会很糟糕

  2. 支持任何现代 SCM

  3. 使用 Python 脚本创建提交前和提交后评论

  4. 在提交前之后,您可以将代码提交到存储库,但是这很难验证并且可以通过

  5. 存储库没有访问控制机制,因为它不受其控制

  6. UI 很好,但加载差异时速度很慢。在我的测试系统上加载文件差异可能需要相当长的时间,而 Gerrit 和 Phabricator 的速度要快得多

  7. 用 Python 编写

  8. 积极发展

Phabricator

Phabricator

  1. For example used by Facebook and Dropbox, so can't be bad

  2. Supports Git, Subversion and Mercurial

  3. Pre-commit review by using php scripts

  4. Post-commit reviews (audit) can be created by making rules that will trigger an audit (nice!)

  5. Is more like a complete eco system which includes a bug tracker, repo browser, wiki and more

  6. They call it light hearted, heavy duty. This means you need to put up with terms like "Clowncopterize" or "Avast" instead of "OK" and you can close tasks "Out of Spite"

  7. Written in php

  8. Very active development

  1. 例如被 Facebook 和 Dropbox 使用,所以不会差

  2. 支持 Git、Subversion 和 Mercurial

  3. 使用 php 脚本进行预提交

  4. 提交后(审计)可以通过制定触发审计的规则来创建(很好!)

  5. 更像是一个完整的生态系统,其中包括错误跟踪器、repo 浏览器、wiki 等

  6. 他们称之为轻松,重任。这意味着您需要忍受诸如“Clowncopterize”或“Avast”之类的术语而不是“OK”,并且您可以“Out of Spite”关闭任务

  7. 用php写的

  8. 非常活跃的发展

My general impression is that Gerrit is favored by new open source projects, Reviewboard by older projects and Phabricator by new startups.

我的总体印象是 Gerrit 受新开源项目青睐,Reviewboard 受旧项目青睐,Phabricator 受新创公司青睐。