繁体   English   中英

GWT源代码回购 - GIT和SVN - 哪个跟踪变化?

[英]GWT Source Code Repo - GIT and SVN - which is the one to track for changes?

哪个官方gwt源代码仓库需要跟踪变更?

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

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

目前git one总是比svn更慢。 还有别的吗?

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

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

Thomas Broyer 写道

我认为这个想法是等到转移到Git完成。 目前,Git repo仍然是SVN repo(git-svn)的镜像,它是Google内部Perforce的镜像。 为了完成移动,我们将重写历史记录以删除所有大文件(预建插件和api-checker参考jar),这样所有贡献者都必须重新同步他们的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中修复的方法 - 我不知道这个并提交了一个新的提交,这是错误的方式 - 托马斯亲切而耐心地指出了我在正确的道路上)。

  4. 一旦代码被审查并通过集合,它就被接受然后被放弃了! 是的,被遗弃了。 我相信Abandoned在这里的含义是,由于代码被合并到主分支中,因此更改了分支。 这让我很困惑。 :)(编辑:实际上,我在这里错了 - 它被放弃了,因为它没有合并到git repo。我怀疑这是因为git repo镜像了SVN - 所以你不能将更改合并到它! - 对gerrit的伟大写作过程在这里: http//qt-project.org/wiki/Gerrit-Introduction

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

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

最后,关于为什么SVN在Git master之前合并我不知道 - 也许在贡献者列表上询问( 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

我刚刚进入了新的官方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/

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM