IDempiere/Download the Code
From WikiQSS
Cloning iDempiere
iDempiere sources are hosted at bitbucket, you can download the complete project with:
cd $HOME/sources hg clone https://bitbucket.org/idempiere/idempiere
Please replace $HOME/sources with the folder where you wish to download the whole sources, at least 2 GB are required.
Local experimentation clone
Once you have downloaded the sources from bitbucket you can easily clone locally your downloaded repository (for example for experimentation purposes) with an instruction like this:
cd $HOME/sources hg clone idempiere myexperiment
This way you could experiment with a local clone instead of the downloaded from bitbucket (in order to keep it pristine).
Keeping up to date
When you want to synchronize your local clone with bitbucket again you can do it with:
cd $HOME/sources/idempiere hg pull -u
and/or, similarly for your local clone
cd $HOME/sources/myexperiment hg pull -u
Note that first one will pull from bitbucket, and second will pull from your local clone.