While building firefox thought id write a blog howto get started.
Followed this link from mozilla : Build Firefox

First the stuff you need before start building : Linux Prerequisites

I pretty much ran this and later had to do some minor fixing while starting to build

# wget -O bootstrap.py https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py && python bootstrap.py
Then grab the source from Mozillas Mercurial repo
# hg clone https://hg.mozilla.org/mozilla-central/
This will take a while (grabing about 5GB of data) so think of having space atleast 15GB Your Linux distro should have a Mercurial package available to install.

Before starting to build you might want to create a ~/.mozconfig file used when building.. Modifying your ~/.mozconfig file (you don?t need to create it, but it might be good)

?If you build it, they will come? Enter the mozilla-central folder
# cd ~/Source/mozilla-central
or wherever you might have it
# ./mach build
This takes a good time while this took place i read up on some mercurial stuff mostly about how to ?Branch? in mercurial After clicking through the mozilla wiki about mercurial i found this Branching in Mercurail

If i understand that, bookmarks is pretty much the same as branches in Git.

Lets say i want to fix a bug for firefox. i would do
# hg bookmark main
# hg bookmark bug1234
Then switching to that bookmark id do

# hg update bug1234
Then id hack stuff
When done
# hg diff > patch12354.patch
# hg update main

Fixing next bug
# hg bookmark bug5678
# hg update bug5678


I think so atleast ?