Mercurial is a version control system, much like SVN and Git. A decentralized approach makes it easy to use any remote or local repository server.
Install OS X
Download the Mercurial package and install.
Open a terminal window and use the hg command to execute actions.
To fetch a project from Bitbucket try:
hg clone https://www.bitbutcket.org/clux/deathmatchjs/ <enter user and password> ls deathmatchjs
After a while, to update the project:
hg pull hg update
Or the short form:
hg -u pull
After making changes, commit your revisions and merge with the revision on the repository server.
hg commit -m "Changed the font size" hg merge https://www.bitbutcket.org/clux/deathmatchjs/ <enter user and password>