9

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

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

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

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

4

2 回答 2

6

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

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

托马斯布罗耶写道

我认为这个想法是等到迁移到 Git 完成。目前,Git 存储库仍然是 SVN 存储库 (git-svn) 的镜像,后者是 Google 内部 Perforce 的镜像。为了完成迁移,我们将重写历史记录以删除所有大文件(预建插件和 api-checker 参考 jars),因此所有贡献者都必须重新同步他们的 Git 存储库。因此,与此同时,SVN 和 Rietveld 仍然可以,尽管“已弃用”。


附录:我实际上为 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 在这里的意思是,由于代码被合并到 master 分支,因此放弃了更改的分支。这也让我很困惑。:) (编辑:实际上,我在这里错了 - 它被放弃了,因为它没有合并到 git repo 中。我怀疑这是因为 git repo 镜像 SVN - 所以你不能将更改合并到它! - 关于 gerrit 的精彩文章这里的过程:http: //qt-project.org/wiki/Gerrit-Introduction

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

现在,我不明白为什么 googlecode repo 仍然开放。在那里提交补丁却发现我需要用 Gerrit 再次完成这一切是非常令人困惑和令人沮丧的(幸运的是,它们是微小的变化)。我怀疑保持 googlecode repo 活着是一件遗留的事情。

最后,至于为什么 SVN 在 Git 大师之前被合并我不知道——也许可以在贡献者列表上询问(https://groups.google.com/forum/?fromgroups=#!forum/google-web-toolkit-贡献者)。SVN 很可能仍然是来自 SVN 的源和 Git 主提要(就像某些项目在过渡时所做的那样)。

另外,请耐心等待——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
于 2013-01-28T05:05:58.177 回答
1

我刚刚碰到了新的官方 GWT 项目网站,该网站是为开源社区服务的。

网站上的更新状态 -

GWT Git repo: https://gwt.googlesource.com/
GWT Gerrit code review: https://gwt-review.googlesource.com/
Old Google Code project: http://code.google.com/p/google-web-toolkit/
于 2013-03-15T10:15:55.780 回答