git - GWT 源代码 repo - GIT 和 SVN - 跟踪更改的是哪个?

标签 git svn gwt gwt2

要跟踪更改的官方 gwt 源代码存储库是哪个?

git 方式在这里 - https://gwt.googlesource.com/gwt/

旧的 svn 方式在这里 - http://code.google.com/p/google-web-toolkit/source/list

目前 git one 总是比 svn one 更新得慢。还有其他的吗?

最佳答案

如果您想要最新的更改,包括正在审核的更改,请查看 https://gwt-review.googlesource.com (但更改/修复作为代码分支存在(通过 gerrit 审查 URL 找到分支引用))。

如果你想要最新的主码,那么它在SVN中(现在!)但将移至 Git在将来。

托马斯布罗耶 wrote :

I think the idea was to wait until the move to Git is complete. For now the Git repo is still a mirror of the SVN repo (git-svn) which is a mirror of Google's internal Perforce. To complete the move, we'll rewrite the history to remove all big files (prebuilt plugins and api-checker reference jars) so all contributors will have to re-sync their Git repo. So in the mean time, SVN and Rietveld is still OK, though "deprecated".


附录:我实际上为 2.5.0 贡献了 2 个修复程序,所以可以对这个过程发表一些评论(不过我不会说我完全理解它 - 更多信息请参见下文)。

这是我的路径:

  1. 发现了我在 Google Code 上遇到的问题,创建了补丁,并通过 Google Code 提交了补丁。 http://code.google.com/p/google-web-toolkit/issues/detail?id=7513 http://code.google.com/p/google-web-toolkit/issues/detail?id=7863 - Huzzah,我想,在圣诞节的前一天晚上,我回馈了 GWT。

  2. 送完礼物后,我发现这几天不是这样提交代码的。 (请参阅 Thomas Broyer 向我指出的最底部的链接)。所以,然后我检查了项目的 git 版本(不是 SVN),用我的更改创建了一个分支:https://gwt-review.googlesource.com/#/c/1540/ - 这就是它与 Gerrit 一起工作的方式。

  3. 我搞砸了一些代码格式,所以我不得不用更改来修改提交(这就是你在 Gerrit 中进行修复的方式 - 我不知道这一点并提交了一个错误的新提交 - Thomas 亲切而耐心地为我指明了正确的道路)。

  4. 一旦代码被审查并通过集合,它就会被接受然后被放弃!是的,被遗弃了。我相信这里 Abandoned 的意思是因为代码被 merge 到 master 分支,所以有变化的分支被放弃了。这也让我感到困惑。 :)(编辑:实际上,我在这里错了——它被放弃是因为它没有 merge 到 git 仓库中。我怀疑这是因为 git 仓库镜像 SVN——所以你不能将更改 merge 到它里面!——关于 gerrit 的很棒的文章在这里处理:http://qt-project.org/wiki/Gerrit-Introduction )

正如我所说,如果您想要绝对最新的更改,您可以从 https://gwt.googlesource.com/gwt 获取所有代码分支。 (正如我之前所说。:))。如果你需要一个特定的修复,你可以自己将其重新设置到 master 分支上。

现在,我不明白为什么 googlecode 存储库仍然打开。在那里提交补丁只是为了发现我需要用 Gerrit 重新做一遍(幸运的是它们是微小的变化),这是非常令人困惑和沮丧的。我怀疑保持 googlecode repo 协议(protocol)是一个遗留问题。

最后,至于为什么 SVN 在 Git master 之前 merge 我不知道 - 也许在贡献者列表(https://groups.google.com/forum/?fromgroups=#!forum/google-web-toolkit-contributors)上问。 SVN 很可能仍然是来自 SVN 的源代码和 Git master 提要(正如某些项目在转换时所做的那样)。

此外,请耐心等待 - GWT 指导委员会是新成立的,已经完成了出色的工作,但还有很多工作要做。谷歌将发布的控制权交给了他们,这真是太棒了,因为指导委员会中有一些非常棒的人。


这是关于代码贡献的官方说法: https://groups.google.com/forum/#!topic/google-web-toolkit-contributors/fmHDlsnfdEQ/discussion

Gerrit Crash Course

In case you’re not familiar with Gerrit already, here are a few beginner steps to get started with:

Going to https://gwt.googlesource.com/ or https://gwt-review.googlesource.com/ you should be able to see the “gwt” project.  You should also be able to anonymously check this out by simply running “git clone https://gwt.googlesource.com/gwt”.

Further, you should be able to go to https://gwt-review.googlesource.com/ and sign in using your Google Account.  Once signed in you should be able to comment and code review existing issues like the sample issue I created at https://gwt-review.googlesource.com/#/c/1020/.

Finally, to actually create an issue is slightly more involved, but most of the steps only need to be done once:

Complete a Contributor Agreement: go to https://gwt-review.googlesource.com, click “Settings” and then “Agreements”, and follow the instructions.  If you previously submitted an individual CLA electronically via Google Code, please do so again via Gerrit (sorry!).  If you previously submitted a corporate CLA and Gerrit does not reflect this already, please email me privately and I’ll check with Google’s Open Source Program Office to get this resolved.
Setup your HTTP Password: Still under Settings, go to “HTTP Password” and click “Obtain Password” and follow the steps to get your HTTP Password and/or to setup your .netrc file.
Setup your Gerrit commit-msg hook (optional, but recommended): Gerrit provides a commit hook at https://gwt-review.googlesource.com/tools/hooks/commit-msg to automatically add Change-Id lines to your commits.  Download this and add it to your checkout’s .git/hooks directory (e.g., “curl -o .git/hooks/commit-msg https://gwt-review.googlesource.com/tools/hooks/commit-msg && chmod +x .git/hooks/commit-msg”).
Make a change and commit it locally using git (e.g., edit a file foo and then run “git commit -m ‘my first change’ foo”).
Push the commit to Gerrit for review: git push origin HEAD:refs/for/master.

Further details can be found in the Git and Gerrit documentations:
http://git-scm.com/documentation
https://gerrit-review.googlesource.com/Documentation/index.html

关于git - GWT 源代码 repo - GIT 和 SVN - 跟踪更改的是哪个?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14555644/

相关文章:

git - 在哪里输入git命令?

git - 从CloudBuild访问GitHub存储库

svn - 初学者对 Subversion 指南的请求

svn - 当我在存储库中丢失了一些修订时,如何转储所有 svn 数据?

java - GWT/Gin Presenter 实例化

java - 如何按类别过滤列表?

git - 是否可以通过 git 别名覆盖 git 命令?

git - 如何更改git分支输出顺序

php - 需要有关我的 PHP 开发解决方案的建议

validation - GWT JSR 303 客户端验证