Git

  • Revision slug: Git
  • Revision title: Git
  • Revision id: 507263
  • Created:
  • Creator: Markh
  • Is current revision? Yes
  • Comment This is currently the #1 google result for "mozilla git", so adding up-to-date info, including a reference to the gecko-dev repo

Revision Content

The current official git mirror of mozilla-central can be found at https://github.com/mozilla/gecko-dev.  If you are looking to work with other Mozilla branches, https://github.com/mozilla/gecko-projects might also be of use.  There is also an etherpad which attempts to describe how to use git to interact with mozilla-central.

For historical reference, the rest of this page describes how you could maintain your own mirror - but almost everyone should be able to use the URL above.

Maintaining your own Mercurial mirror of mozilla-central

The rest of this page is for historical reference only - most people can ignore it and it's almost certainly out of date - refer to the information above.

The most commonly used Mercurial mirror is at https://github.com/doublec/mozilla-central

This repository is synced using hg-git. The git-mapfile for it is available at http://www.bluishcoder.co.nz/git-mapfile.bz2

Bootstrapping a hg-git repo

hg clone http://hg.mozilla.org/mozilla-central mozilla-central-hg-git

cd mozilla-central-hg-git/.hg

wget http://www.bluishcoder.co.nz/git-mapfile.bz2

bunzip2 git-mapfile.bz2

git clone git://github.com/doublec/mozilla-central.git --bare git

cd ../

# sync up what's left

hg gexport

 Misc

 -R can be used for specifying a repository other than nearest .hg
e.g. hg -R ../mozilla-central-hg-git push .

Things that would be nice to be able to do

use try-server

Revision Source

<p>The current official git mirror of mozilla-central can be found at <a href="https://github.com/mozilla/gecko-dev">https://github.com/mozilla/gecko-dev</a>.&nbsp; If you are looking to work with other Mozilla branches, <a href="https://github.com/mozilla/gecko-projects">https://github.com/mozilla/gecko-projects</a> might also be of use.&nbsp; <a href="https://etherpad.mozilla.org/moz-git-tools">There is also an etherpad</a> which attempts to describe how to use git to interact with mozilla-central.</p>
<p>For historical reference, the rest of this page describes how you could maintain your own mirror - but almost everyone should be able to use the URL above.</p>
<h2>Maintaining your own Mercurial mirror of mozilla-central</h2>
<p>The rest of this page is for historical reference only - most people can ignore it and it's almost certainly out of date - refer to the information above.</p>
<p>The most commonly used <a href="/en/Mercurial" title="Mercurial">Mercurial</a> mirror is at <a class="link-https" href="https://github.com/doublec/mozilla-central" title="https://github.com/doublec/mozilla-central">https://github.com/doublec/mozilla-central</a></p>
<p>This repository is synced using hg-git. The git-mapfile for it is available at <a class="external" href="http://www.bluishcoder.co.nz/git-mapfile.bz2" title="http://www.bluishcoder.co.nz/git-mapfile.bz2">http://www.bluishcoder.co.nz/git-mapfile.bz2</a></p>
<h3 id="Bootstrapping_a_hg-git_repo">Bootstrapping a hg-git repo</h3>
<p><code>hg clone <a class="external" href="http://hg.mozilla.org/mozilla-central" rel="freelink">http://hg.mozilla.org/mozilla-central</a> mozilla-central-hg-git</code></p>
<p><code>cd mozilla-central-hg-git/.hg</code></p>
<p><code>wget <a class="external" href="http://www.bluishcoder.co.nz/git-mapfile.bz2" rel="freelink">http://www.bluishcoder.co.nz/git-mapfile.bz2</a></code></p>
<p><code>bunzip2 git-mapfile.bz2</code></p>
<p><code>git clone <a class="external" href="git://github.com/doublec/mozilla-central.git" rel="freelink">git://github.com/doublec/mozilla-central.git</a> --bare git</code></p>
<p><code>cd ../</code></p>
<p><code># sync up what's left</code></p>
<p><code>hg gexport</code></p>
<h3 id=".C2.A0Misc">&nbsp;Misc</h3>
<p>&nbsp;-R can be used for specifying a repository other than nearest .hg<br />
 e.g. hg -R ../mozilla-central-hg-git push .</p>
<h3 id="Things_that_would_be_nice_to_be_able_to_do">Things that would be nice to be able to do</h3>
<p>use try-server</p>
Revert to this revision