Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 2686|回复: 5
打印 上一主题 下一主题

TortoiseHg同步官方源码

[复制链接]

388

主题

602

帖子

2218

积分

金牌会员

Rank: 6Rank: 6

积分
2218
跳转到指定楼层
楼主
发表于 2015-12-28 11:30:58 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 hechengjin 于 2015-12-28 14:30 编辑

TortoiseHg 是一个跨平台的 Mercurial 分布式版本控制系统的可视化客户端工具。
下载TortoiseHg
http://tortoisehg.bitbucket.org/download/index.html
32-bit Windows64-bit Windows
或从百度网盘下载:
链接:http://pan.baidu.com/s/1bnKHF6v 密码:95qw

2.克隆如下地址:http://hg.mozilla.org/comm-central



3.更新完成后,新建mozilla文件夹,如下:



进入mozilla文件夹,

克隆如下地址:http://hg.mozilla.org/mozilla-central





On some types of network connections, "hg clone" might fail because it gets interrupted. It is faster and more efficient to use Mercurial bundles instead the first time you fetch the complete repo. In this case, you need a bundle for comm-central, and a bundle for mozilla-central. Unbundle mozilla-central into a "mozilla" subdirectory of your comm-central repo after unbundling comm-central. Then run python client.py checkout to ensure you are up-to-date.

回复

使用道具 举报

388

主题

602

帖子

2218

积分

金牌会员

Rank: 6Rank: 6

积分
2218
沙发
 楼主| 发表于 2015-12-28 11:36:52 | 只看该作者
本帖最后由 hechengjin 于 2015-12-28 11:50 编辑

相关问题


*** 加载扩展 'bzpost',自 'c:\Users\hechengjin\.mozbuild\version-control-tools\hgext\bzpost': No module named Cookie
% hg clone --verbose http://hg.mozilla.org/comm-central "E:\MercurialTortoiseHg"
(mercurial client has built-in support for bundle clone features; the "bundleclone" extension can likely safely be removed)
(but the experimental.clonebundles config flag is not enabled: enable it before disabling bundleclone or cloning from pre-generated bundles may not work)
applying clone bundle from https://hg.cdn.mozilla.net/comm- ... 6eb718a5f12.gzip.hg
error fetching bundle:
中止: error applying bundle
提示: if this error persists, consider contacting the server operator or disable clone bundles via "--config experimental.clonebundles=false"
[命令返回代码255 Mon Dec 28 11:34:14 2015]
解决:
--config experimental.clonebundles=false 把这句话放到 远程命令里面




回复 支持 反对

使用道具 举报

257

主题

354

帖子

1677

积分

金牌会员

Rank: 6Rank: 6

积分
1677
板凳
发表于 2015-12-31 21:27:21 | 只看该作者
本帖最后由 jimu 于 2016-1-8 11:59 编辑

Downloadingbundle下载:
链接:http://pan.baidu.com/s/1hreVdNA 密码:51n7

comm-central 的 gzip 文件 ca2c0fd7c80d758f98954ca7789cb59b3f8ad2d1.gzip.hg
mozilla-central的 gzip文件 7c83da46ea740bc14028aca9f9a662f062de5586.gzip.hg

-------1. 释放comm-central目录源码
MINGW工具进入:
Administrator@W7-201509121026 /
$
mkdir Mercurial
cd Mercurial
hg init comm-central
cd comm-central
hg unbundle /e/Mercurial/ca2c0fd7c80d758f98954ca7789cb59b3f8ad2d1.gzip.hg

echo '[paths]' > ./.hg/hgrc
echo 'default = https://hg.mozilla.org/comm-central/' >> ./.hg/hgrc

hg update   ---得到工作目录内容

-------2. 释放mozilla-central目录源码

hg init mozilla
cd mozilla
hg unbundle /e/Mercurial/7c83da46ea740bc14028aca9f9a662f062de5586.gzip.hg

echo '[paths]' > ./.hg/hgrc
echo 'default = https://hg.mozilla.org/mozilla-central/' >> ./.hg/hgrc
hg update   ---得到工作目录内容

------3.编译


cd /e/Mercurial/comm-central

echo 'ac_add_options --enable-application=mail' > .mozconfig
echo 'ac_add_options --enable-calendar' >> .mozconfig

./mozilla/mach build








回复 支持 反对

使用道具 举报

388

主题

602

帖子

2218

积分

金牌会员

Rank: 6Rank: 6

积分
2218
地板
 楼主| 发表于 2016-1-8 19:54:04 | 只看该作者
本帖最后由 hechengjin 于 2016-1-26 19:37 编辑

18:27.27    Creating library ../lib/icudt.lib and object ../lib/icudt.exp
18:27.32 pkgdata: bash -c "cl -DU_USING_ICU_NAMESPACE=0 -DU_NO_DEFAULT_INCLUDE_U
TF_HEADERS=1 -DUCONFIG_NO_LEGACY_CONVERSION -DUCONFIG_NO_TRANSLITERATION -DUCONF
IG_NO_REGULAR_EXPRESSIONS -DUCONFIG_NO_BREAK_ITERATION -DU_CHARSET_IS_UTF8 -Ie:/
MercurialBundles/comm-central/mozilla/intl/icu/source/common -Ie:/MercurialBundl
es/comm-central/mozilla/intl/icu/source/i18n    -DHAVE_DLOPEN=0 -DU_HAVE_ATOMIC=
1 -DU_HAVE_MMAP=0 -DU_HAVE_DIRENT_H=0 -DU_HAVE_POPEN=0 -DU_HAVE_WCSCPY=0  -DU_RE
LEASE=1 -D_CRT_SECURE_NO_DEPRECATE -DU_ATTRIBUTE_DEPRECATED= -DWIN32 -DCYGWINMSV
C -TC -nologo -D_HAS_EXCEPTIONS=0 -W3 -Gy -arch:IA32 -FS -wd4244 -wd4267 -wd4819
-we4553 -Zi -UDEBUG -DNDEBUG -O1 -Oi -MD   -GF -nologo -c oma.c -o oma.obj"
18:27.32 genccode: --match-arch cpu=332 bits=32 big-endian=0
18:27.33 pkgdata: link.exe /nologo /release /out:"../lib/icudt56.dll" /DLL /NOEN
TRY /MANIFEST:NO  /base:0x4ad00000 /implib:"../lib/icudt.lib" "./out/tmp\icudt56
l_dat.obj" "./out/tmp/icudata.res"
18:27.51 Note: rebuild with "c:/mozilla-build/mozmake/mozmake.EXE VERBOSE=1 all-
local" to show all compiler parameters.
18:27.77 e:/MercurialBundles/comm-central/mozilla/config/recurse.mk:32: recipe f
or target 'compile' failed
18:27.77 mozmake.EXE[2]: *** [compile] Error 2
18:27.77 e:/MercurialBundles/comm-central/mozilla/config/rules.mk:534: recipe fo
r target 'default' failed
18:27.77 mozmake.EXE[1]: *** [default] Error 2
18:27.77 client.mk:404: recipe for target 'build' failed
18:27.77 mozmake.EXE: *** [build] Error 2
18:27.80 39 compiler warnings present.
2


Because of 4GB limit, mozilla windows build bash uses a VC2013 AMD64_x86 cross compiler toolchain, so I suggest you should use x64 OS.目前已经是X64系统,还是报这个错误.
  1. 17:30.57 nsOEStringBundle.cpp
  2. 17:30.60 mailnews_import_oexpress.lib.desc
  3. 17:53.16 generating out/tmp/zone/res_index.txt (list of installed time zone name
  4. locales)
  5. 17:53.54 generating out/tmp/unit/res_index.txt (list of installed time zone name
  6. locales)
  7. 17:53.65 ./out/tmp/unit\res_index.txt:3: warning: Encountered empty array
  8. 18:12.60 generating out/tmp/coll/res_index.txt (list of installed collation loca
  9. les)
  10. 18:12.82 generating out/tmp/brkitr/res_index.txt (list of installed break locale
  11. s)
  12. 18:12.93 ./out/tmp/brkitr\res_index.txt:3: warning: Encountered empty array
  13. 18:12.99 generating out/tmp/rbnf/res_index.txt (list of installed RBNF locales)
  14. 18:13.10 ./out/tmp/rbnf\res_index.txt:3: warning: Encountered empty array
  15. 18:14.46 ALL_CFU_SOURCE: e:/MercurialBundles/comm-central/mozilla/intl/icu/sourc
  16. e/data/unidata/confusables.txt e:/MercurialBundles/comm-central/mozilla/intl/icu
  17. /source/data/unidata/confusablesWholeScript.txt
  18. 18:14.50 CFU_FILES: ./out/build/icudt56l/confusables.cfu
  19. 18:14.54 CFU_FILES_SHORT: confusables.cfu
  20. 18:14.61 gencfu writes dummy out/build/icudt56l/confusables.cfu because of UCONF
  21. IG_NO_REGULAR_EXPRESSIONS and/or UCONFIG_NO_NORMALIZATION and/or UCONFIG_NO_FILE
  22. _IO, see uconfig.h
  23. 18:14.67 generating out/tmp/icudata.lst (list of data files)
  24. 18:16.39 cl : Command line warning D9035 : option 'o' has been deprecated and wi
  25. ll be removed in a future release
  26. 18:16.39 oma.c
  27. 18:16.50    Creating library ../lib/icudt.lib and object ../lib/icudt.exp
  28. 18:16.56 pkgdata: bash -c "cl -DU_USING_ICU_NAMESPACE=0 -DU_NO_DEFAULT_INCLUDE_U
  29. TF_HEADERS=1 -DUCONFIG_NO_LEGACY_CONVERSION -DUCONFIG_NO_TRANSLITERATION -DUCONF
  30. IG_NO_REGULAR_EXPRESSIONS -DUCONFIG_NO_BREAK_ITERATION -DU_CHARSET_IS_UTF8 -Ie:/
  31. MercurialBundles/comm-central/mozilla/intl/icu/source/common -Ie:/MercurialBundl
  32. es/comm-central/mozilla/intl/icu/source/i18n    -DHAVE_DLOPEN=0 -DU_HAVE_ATOMIC=
  33. 1 -DU_HAVE_MMAP=0 -DU_HAVE_DIRENT_H=0 -DU_HAVE_POPEN=0 -DU_HAVE_WCSCPY=0  -DU_RE
  34. LEASE=1 -D_CRT_SECURE_NO_DEPRECATE -DU_ATTRIBUTE_DEPRECATED= -DWIN32 -DCYGWINMSV
  35. C -TC -nologo -D_HAS_EXCEPTIONS=0 -W3 -Gy -arch:IA32 -FS -wd4244 -wd4267 -wd4819
  36. -we4553 -Zi -UDEBUG -DNDEBUG -O1 -Oi -MD   -GF -nologo -c oma.c -o oma.obj"
  37. 18:16.56 genccode: --match-arch cpu=332 bits=32 big-endian=0
  38. 18:16.56 pkgdata: link.exe /nologo /release /out:"../lib/icudt56.dll" /DLL /NOEN
  39. TRY /MANIFEST:NO  /base:0x4ad00000 /implib:"../lib/icudt.lib" "./out/tmp\icudt56
  40. l_dat.obj" "./out/tmp/icudata.res"
  41. 18:16.71 Note: rebuild with "c:/mozilla-build/mozmake/mozmake.EXE VERBOSE=1 all-local" to show all compiler parameters.
  42. 18:16.95 e:/MercurialBundles/comm-central/mozilla/config/recurse.mk:32: recipe for target 'compile' failed
  43. 18:16.95 mozmake.EXE[2]: *** [compile] Error 2
  44. 18:16.96 e:/MercurialBundles/comm-central/mozilla/config/rules.mk:534: recipe for target 'default' failed
  45. 18:16.96 mozmake.EXE[1]: *** [default] Error 2
  46. 18:16.96 client.mk:404: recipe for target 'build' failed
  47. 18:16.96 mozmake.EXE: *** [build] Error 2
  48. 18:17.00 39 compiler warnings present.
  49. 2
复制代码

编译相关问题交流:
mozilla.dev.builds (access via Google Groups). Make your post as precise as possible, including details about your operating system, your mozconfig/configure flags, and the precise error you are experiencing.
You may also want to check the TreeHerder to make sure the product you are working with is currently compiling in your environment.
more detailed information, see thebuild documentation.








回复 支持 反对

使用道具 举报

388

主题

602

帖子

2218

积分

金牌会员

Rank: 6Rank: 6

积分
2218
5#
 楼主| 发表于 2016-1-26 20:00:33 | 只看该作者
本帖最后由 hechengjin 于 2016-1-26 20:02 编辑

https://hg.cdn.mozilla.net/
Mercurial Bundles       This server contains Mercurial bundle files that can be used to seed       repository clones. If your Mercurial client is configured properly,       it should fetch one of these bundles automatically.     
      The table below lists all available repositories and their bundles.      Only the most recent bundle is shown. Previous bundles are expired 7 days      after they are superseded.     
       For more, see        the official docs.     
Repositorygzipbz2streamstream-legacy
build/mozharness2,450,566-5,668,2725,668,251
build/talos41,868,202-43,524,50643,524,487
build/tools21,915,540-27,416,89227,416,873
comm-central71,848,74763,434,33593,232,39993,232,381
integration/b2g-inbound1,234,450,247-1,694,145,0891,694,145,074
integration/fx-team1,233,671,789-1,691,370,0401,691,370,025
integration/gaia-central1,831,559,229-1,979,716,1401,979,716,124
integration/mozilla-inbound1,313,810,630-1,795,123,4821,795,111,990
mozilla-central1,276,290,3171,026,392,9991,749,143,7061,749,143,691
projects/ash1,257,933,037-1,719,573,6981,719,573,683
projects/cedar1,315,127,910-1,796,037,1641,796,037,149
projects/holly1,232,393,995-1,681,893,5981,681,893,583
projects/jamun1,215,040,968-1,658,836,8281,658,836,813
projects/larch1,275,942,150-1,748,683,4621,748,683,447
projects/oak1,239,624,263-1,692,077,7101,692,077,695
releases/mozilla-aurora1,305,203,3751,049,665,9771,796,731,3761,796,731,361
releases/mozilla-b2g32_v2_0892,481,936-1,225,671,4531,225,671,438
releases/mozilla-b2g32_v2_0m892,498,523-1,226,298,8181,226,298,803
releases/mozilla-b2g34_v2_1950,207,248-1,309,082,5001,309,082,485
releases/mozilla-b2g37_v2_21,056,571,271-1,449,384,7051,449,384,690
releases/mozilla-b2g37_v2_2r1,057,074,048-1,450,224,2101,450,224,195
releases/mozilla-b2g44_v2_51,320,161,712-1,795,797,3151,795,797,300
releases/mozilla-beta1,322,784,9321,065,187,1571,810,231,7391,810,231,724
releases/mozilla-esr31894,802,738-1,218,213,5871,218,213,572
releases/mozilla-esr381,077,872,516862,384,0941,486,604,0151,486,604,000
releases/mozilla-release1,295,929,8101,044,589,3341,777,486,5401,777,486,525
This page generated at 2016-01-26T08:25:57.332732.
回复 支持 反对

使用道具 举报

257

主题

354

帖子

1677

积分

金牌会员

Rank: 6Rank: 6

积分
1677
6#
发表于 2016-1-29 21:05:52 | 只看该作者
8b8bcdeb0dca23f20d5f79054bbd046fea1eedb3.gzip.hg
aa90f482e16db77cdb7dea84564ea1cbd8f7f6b3.gzip.hg

链接:http://pan.baidu.com/s/1hreVdNA 密码:51n7
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|firemail ( 粤ICP备15085507号-1 )

GMT+8, 2024-4-26 00:36 , Processed in 0.133314 second(s), 21 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表