869 bytes added,
21:21, 31 July 2007 This page is an introduction on how to use Mercurial locally with CVS. That is, code is still checked out/committed to the Mozilla repository using CVS, but all local work is done using Mercurial.
== Prerequisites ==
* Mercurial 0.9.4 (or newer -- though release versions are preferred)
== Goal ==
At the end of this document, you'll end up with two hg repositories:
* a CVS repository, which is where the hg <-> cvs interaction takes place
* a clone of the above repository, which is where all your work takes place (you can have more than one of these; but you can only have one CVS repository)
=== Initializing the CVS repository ===
First, pull a mozilla checkout into a clean dir.
% mkdir cvssrc
% cd cvssrc
% cvs -d :ext:yourcvsusername@cvs.mozilla.org:/cvsroot co mozilla/client.mk
% cd mozilla
% MOZ_CO_PROJECT=browser make -f client.mk pull_all