Mercurial: Difference between revisions

493 bytes added ,  4 February 2008
(add some links)
Line 41: Line 41:
== Checking out ==
== Checking out ==
The Mozilla 2 trunk is located at http://hg.mozilla.org/mozilla-central .
The Mozilla 2 trunk is located at http://hg.mozilla.org/mozilla-central .
You need [http://www.python.org/download/ Python 2.4 or later] just to check everything out.  This is because we're using Python to do some checkout-related stuff that <code>client.mk</code> used to do&mdash;blame bsmedberg ;)


  hg clone <nowiki>http://hg.mozilla.org/mozilla-central</nowiki>
  hg clone <nowiki>http://hg.mozilla.org/mozilla-central</nowiki>
  cd mozilla-central
  cd mozilla-central
  python client.py checkout
  python client.py checkout   # <--- *** don't forget this ***
 
After that you can just get yourself a .mozconfig file and build as you normally would.
 
If you get the error message "No module named subprocess", that's because you didn't install Python 2.4 or later.  Go back two paragraphs.


{{warning|If you don't run client.py, it won't build.  Then you'll go on IRC and ask why it won't build, and once it becomes clear that you haven't run client.py, you will be ruthlessly mocked.  (This is maybe not the best failure mode, but that's how it works right now.  Sorry!)}}
{{warning|If you don't run client.py, it won't build.  Then you'll go on IRC and ask why it won't build, and once it becomes clear that you haven't run client.py, you will be ruthlessly mocked.  (This is maybe not the best failure mode, but that's how it works right now.  Sorry!)}}
638

edits