我只需要指定版本的 Chromium 代码,例如 r69297,这是 Chrome 的最新开发版本。
我使用 git,所以我按照这里的说明进行操作:http://code.google.com/p/chromium/wiki/UsingGit但是,在我同步所有代码并查看提交日志后,我找不到此修订版!
然后我想到了标签,并在这里搜索。如何使用git查看指定版本的Webkit?在这里我发现了,但是在遵循所有步骤之后,并等待了很长一段时间,我仍然什么也没得到。
chromium的git仓库是否保存标签信息?我怎样才能得到它们?
谢谢
When the question was asked, Chromium used SVN. Nowadays, git is the primary VC system, so I will use git tags/hashes instead of r#### revisions.
在这个答案中,我假设您已经设置了构建 Chromium 的先决条件(包括初始结帐)。如果您没有该教程,请按照以下网址的教程进行操作http://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/depot_tools_tutorial.html在继续之前。您可以跳过gclient sync
步骤,因为无论如何您都将在下面的步骤中替换依赖项。
场景:我想在最新的稳定 Chromium 版本之上应用补丁。要了解最新的稳定版本,请访问https://omahaproxy.appspot.com/。根据该页面,最新版本是38.0.2125.104。如果您想查看上一个/下一个版本,请访问http://blink.lc/chromium/refs/了解标签的概述。此标签列表包括未发布的版本,例如38.0.2125.106(当新补丁应用到由第三个数字标识的基线之上时,最后一个版本号会增加)。
# Inside chromium/src/
git fetch origin 38.0.2125.106
# Create a new branch "my_stable_branch" that is based on the just-fetched HEAD.
git checkout -b my_stable_branch FETCH_HEAD
# ... apply the patch ...
# (e.g. by editing the files)
# (e.g. by using git cherry-pick [commit id] )
# (e.g. by using git checkout [commit id] [file path] )
# Commit changes (assuming that you want to keep track of your changes)
git commit -va
# Now synchronize the dependencies to the current branch
gclient sync --with_branch_heads # --jobs 16 if you wish to use parallelism
# Now compile the release build. The output will be stored in src/out/Release.
ninja -C out/Release chrome chrome_sandbox
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)