fetch chromium 只能到最新的版本,如何指定特定的版本

缘由:

chromium现在分四大分支:

canary:最前沿的版本,每日发布,bug比较多,一般不推荐下载,特别是国内使用vpn普通网络不好的情况;

dev:每2星期发布,比较稳定,可以体验新功能和新特性
beta:每周小版本更新,6周大版本更新。比dev稳定,比同期dev版小1个版本号,基本上就是stable的待发版本

statle:比同期dev小2个版本号,2到3周版本更新一次,每6周主版本更新。这是正式发布的版本,推荐使用这个


从chromium39.0.2313.2版本之后的源码不能再通过之前那种gclient config http://*的方式通过制定的版本号(或者默认下载最新)的方式来获取源码了,因为之后的chromium的代码刚好全部迁移到了git管理了,那么通过默认使用fetch chromium,获取到的将是最新的canary版本,怎么获取statle稳定版本呢,可以通过下面的两种方式:



方案1:(方案1本机已经验证没有问题)

mengjianjun:src mengjianjun$ git fetch origin 42.0.2311.153

From https://chromium.googlesource.com/chromium/src

 * tag               42.0.2311.153 -> FETCH_HEAD

mengjianjun:src mengjianjun$ git checkout -b my_stable_branch FETCH_HEAD

Checking out files: 100% (28149/28149), done.

Previous HEAD position was b1e4962... Roll src/third_party/WebKit 8e110e4:36757d61 (svn 195456:195459)

Switched to a new branch 'my_stable_branch'

mengjianjun:src mengjianjun$ gclient sync --with_branch_heads



来源自stackoverfloat:
http://stackoverflow.com/questions/4481803/how-to-get-code-of-specified-tag-version-of-chromium-from-git

how to get code of specified tag version of Chromium from git?


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

share improve this question
 
 
What do you mean, "I still get nothing"? Could you show the result of running these commands? –  Jean Hominal  Dec 19 '10 at 10:53
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值