首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >GWT源代码Repo - GIT和SVN -跟踪更改的是哪一个?

GWT源代码Repo - GIT和SVN -跟踪更改的是哪一个?
EN

Stack Overflow用户
提问于 2013-01-28 12:54:24
回答 2查看 1.7K关注 0票数 9

要跟踪更改的官方gwt源代码库是什么?

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

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

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

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2013-01-28 13:05:58

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

如果您想要最新的主代码,那么它在SVN中(目前!)但将来会迁移到Git

Thomas Broyer wrote

我想我们的想法是等到迁移到Git完成。目前,Git repo仍然是SVN repo (git-svn)的镜像,后者是Google内部Perforce的镜像。为了完成移动,我们将重写历史以删除所有大文件(预构建的插件和api检查器引用jars),以便所有贡献者都必须重新同步他们的Git存储库。因此,在同一时间,SVN和Rietveld仍然可以,尽管“不推荐”。

附录:我实际上为2.5.0贡献了两个修复,所以我可以对这个过程发表一点评论(我不会说我完全理解它-下面会有更多)。

这是我的道路:

  1. 发现了我在谷歌代码上遇到的问题,创建了一个补丁,并通过谷歌代码提交了补丁。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中修复的方式-我不知道这一点,并提交了一个新的提交,这是错误的方式-托马斯亲切而耐心地指出了正确的道路)。
  4. 一旦代码被审查并通过集合,它就会被接受,然后就会被放弃!是的,被遗弃了。我相信这里放弃的意思是,由于代码合并到主分支中,具有更改的分支将被放弃。这也让我感到困惑。:) (编辑:实际上,我错了-它被放弃了,因为它没有合并到git repo中。我怀疑这是因为git repo镜像了SVN --所以你不能将更改合并到其中!--关于gerrit进程的很棒的文章:http://qt-project.org/wiki/Gerrit-Introduction )

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

现在,我不明白的是为什么googlecode repo仍然是开放的。在那里提交一个补丁,结果发现我需要用Gerrit重新做一次(幸运的是,这些都是很小的变化),这是非常令人困惑和沮丧的。我怀疑保留googlecode代码库是一件遗留下来的事情。

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

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

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

代码语言:javascript
运行
复制
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
票数 6
EN

Stack Overflow用户

发布于 2013-03-15 18:15:56

我刚刚接触到了新的Official GWT Project站点,它是为开源社区而建的。

网站状态更新-

代码语言:javascript
运行
复制
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/
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14555644

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档