如何从git获取指定标签版本的Chromium代码? [英] how to get code of specified tag version of Chromium from git?

查看:1478
本文介绍了如何从git获取指定标签版本的Chromium代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只需要Chrome的指定版本的代码,如r69297,它是Chrome的最新开发版本。
i使用git,所以我按照这里的说明:
http:/ /code.google.com/p/chromium/wiki/UsingGit
,但是,在我同步所有代码并查看提交日志后,我无法找到此修订版!
然后我想到了标签,并在这里搜索。
如何使用git结帐一个特定版本的Webkit?
在这里我找到了,但是在按照所有步骤完成之后,等了很长时间,我仍然没有收到任何东西。
铬的git仓库是否保留标签信息?我怎么能得到他们?
thx

i just need code of specified version of Chromium like r69297 which is the latest dev version of Chrome. i use git so i follow the instruction here: http://code.google.com/p/chromium/wiki/UsingGit however, after i sync all the code, and review the commit log, i can't find this revision! then i thought about tag, and searched here. How to use git to checkout a specified version of Webkit? here i found, but after follow all the steps, and wait for quite a long long time, i still get nothing. does the git repository of chromium keep the tag information? how can i get them? thx

推荐答案

当问题出现时,Chromium使用SVN。现在,git是主要的VC系统,因此我将使用git标记/散列而不是r ####修订版。

这个答案,我假设你已经设置了构建Chromium的先决条件(包括初始结账)。如果您还没有该版本,请按照 http:/ /commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/depot_tools_tutorial.html ,然后继续。您可以跳过 gclient sync 步骤,因为您将在下面的步骤中替换依赖项。

In this answer, I assume that you have already set up the pre-requisites for building Chromium (including an initial checkout). If you don't have that one, follow the tutorial at http://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/depot_tools_tutorial.html before continuing. You can skip the gclient sync step because you'll replace the dependencies anyway in the steps below.

场景:我想在最新的稳定Chromium版本上应用补丁。要了解最新的稳定版本,请访问 https://omahaproxy.appspot.com/ 。根据该页面,最新版本是38.0.2125.104。如果您想查看上一个/下一个版本,请访问 http://blink.lc/chromium/refs/ 标签。这个标签列表包括未发布的版本,例如, 38.0.2125.106(当第三个数字为标识符的基线顶部应用了新补丁时,最后的内部版本号增加)。

Scenario: I want to apply a patch on top of the latest stable Chromium version. To find out the latest stable build, just visit https://omahaproxy.appspot.com/. According to that page, the latest version is 38.0.2125.104. If you want to see previous/next releases, visit http://blink.lc/chromium/refs/ for an overview of tags. This list of tags includes unreleased versions, e.g. 38.0.2125.106 (the last build number increases when new patches are applied on top of the baseline that is identifier by the third number).

# 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

这篇关于如何从git获取指定标签版本的Chromium代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆