зеркало из https://github.com/mozilla/gecko-dev.git
6011245964
https://hg.mozilla.org/firefox now exists. It is a unified Firefox repository containing the heads of all the major Firefox repos (mozilla-central, inbound, aurora, beta, release, esrs, etc). Having 1 unified repository is more useful and incurs less overhead than N separate repos. We want to encourage the use of the unified repository. So, we start cloning from it. The unified repo on the server is configured in such a way that manifest delta chains can become very long - over 30,000 deltas. This can make manifest reading very slow and slow down many Mercurial operations. The server compensates for this by setting format.maxchainlen=10000 to limit the delta chains to 10,000. Unfortunately, this setting is not preserved when clients do a traditional clone: the changegroup consists of a single delta chain and the client will use its own settings (often the default) to break the chain. This will result in the client re-creating very long delta chains. So, as part of initializing the new repo we configure format.maxchainlen in its .hg/hgrc so it doesn't suffer from this performance issue. We could achieve the same result by passing the --config option to `hg clone`. However, the option won't be preserved in the repo's .hg/hgrc and subsequent `hg pull` operations could result in the creation of very long delta chains. So we need to write the config option in the .hg/hgrc. `hg clone` is equivalent to `hg init` + `hg pull` anyway, so we just separate out the steps and insert a write to .hg/hgrc in between. We also set the "default" path (like `hg clone` would do). DONTBUILD (NPOTB) MozReview-Commit-ID: Fs4cz9YvdCv --HG-- extra : rebase_source : 99e8239415f74d078c9a1a903355175cb54a8184 extra : amend_source : ee4bc9ef2b89fabdae6f14d0ab10ca12dc08b15d |
||
---|---|---|
.. | ||
bin | ||
mozboot | ||
README.rst | ||
setup.py |
README.rst
mozboot - Bootstrap your system to build Mozilla projects ========================================================= This package contains code used for bootstrapping a system to build mozilla-central. This code is not part of the build system per se. Instead, it is related to everything up to invoking the actual build system. If you have a copy of the source tree, you run: python bin/bootstrap.py If you don't have a copy of the source tree, you can run: curl https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py | python - The bootstrap script will download everything it needs from hg.mozilla.org automatically!