hechengjin 发表于 2015-12-28 11:30:58

TortoiseHg同步官方源码

本帖最后由 hechengjin 于 2015-12-28 14:30 编辑

TortoiseHg 是一个跨平台的 Mercurial 分布式版本控制系统的可视化客户端工具。
下载TortoiseHg
http://tortoisehg.bitbucket.org/download/index.html
32-bit Windows
[*]3.6.2
64-bit Windows
[*]3.6.2

或从百度网盘下载:
链接:http://pan.baidu.com/s/1bnKHF6v 密码:95qw

2.克隆如下地址:http://hg.mozilla.org/comm-central
http://www.firemail.wang/data/attachment/forum/201512/27/142232mtkdp0tktzh8htud.jpg

http://www.firemail.wang/data/attachment/forum/201512/27/142100z5t8w7nn8nqqniqn.jpg
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.

hechengjin 发表于 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 把这句话放到 远程命令里面




jimu 发表于 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 '' > ./.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 '' > ./.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








hechengjin 发表于 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: *** 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: *** Error 2
18:27.77 client.mk:404: recipe for target 'build' failed
18:27.77 mozmake.EXE: *** 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系统,还是报这个错误.
17:30.57 nsOEStringBundle.cpp
17:30.60 mailnews_import_oexpress.lib.desc
17:53.16 generating out/tmp/zone/res_index.txt (list of installed time zone name
locales)
17:53.54 generating out/tmp/unit/res_index.txt (list of installed time zone name
locales)
17:53.65 ./out/tmp/unit\res_index.txt:3: warning: Encountered empty array
18:12.60 generating out/tmp/coll/res_index.txt (list of installed collation loca
les)
18:12.82 generating out/tmp/brkitr/res_index.txt (list of installed break locale
s)
18:12.93 ./out/tmp/brkitr\res_index.txt:3: warning: Encountered empty array
18:12.99 generating out/tmp/rbnf/res_index.txt (list of installed RBNF locales)
18:13.10 ./out/tmp/rbnf\res_index.txt:3: warning: Encountered empty array
18:14.46 ALL_CFU_SOURCE: e:/MercurialBundles/comm-central/mozilla/intl/icu/sourc
e/data/unidata/confusables.txt e:/MercurialBundles/comm-central/mozilla/intl/icu
/source/data/unidata/confusablesWholeScript.txt
18:14.50 CFU_FILES: ./out/build/icudt56l/confusables.cfu
18:14.54 CFU_FILES_SHORT: confusables.cfu
18:14.61 gencfu writes dummy out/build/icudt56l/confusables.cfu because of UCONF
IG_NO_REGULAR_EXPRESSIONS and/or UCONFIG_NO_NORMALIZATION and/or UCONFIG_NO_FILE
_IO, see uconfig.h
18:14.67 generating out/tmp/icudata.lst (list of data files)
18:16.39 cl : Command line warning D9035 : option 'o' has been deprecated and wi
ll be removed in a future release
18:16.39 oma.c
18:16.50    Creating library ../lib/icudt.lib and object ../lib/icudt.exp
18:16.56 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:16.56 genccode: --match-arch cpu=332 bits=32 big-endian=0
18:16.56 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:16.71 Note: rebuild with "c:/mozilla-build/mozmake/mozmake.EXE VERBOSE=1 all-local" to show all compiler parameters.
18:16.95 e:/MercurialBundles/comm-central/mozilla/config/recurse.mk:32: recipe for target 'compile' failed
18:16.95 mozmake.EXE: *** Error 2
18:16.96 e:/MercurialBundles/comm-central/mozilla/config/rules.mk:534: recipe for target 'default' failed
18:16.96 mozmake.EXE: *** Error 2
18:16.96 client.mk:404: recipe for target 'build' failed
18:16.96 mozmake.EXE: *** Error 2
18:17.00 39 compiler warnings present.
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.








hechengjin 发表于 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.

jimu 发表于 2016-1-29 21:05:52

8b8bcdeb0dca23f20d5f79054bbd046fea1eedb3.gzip.hg
aa90f482e16db77cdb7dea84564ea1cbd8f7f6b3.gzip.hg

链接:http://pan.baidu.com/s/1hreVdNA 密码:51n7
页: [1]
查看完整版本: TortoiseHg同步官方源码