Difference between revisions of "Install Mercurial"

From ivc wiki
Jump to navigationJump to search
(Created page with "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 [h...")
 
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:


Open a terminal window and use the ''hg'' command to execute actions.
Open a terminal window and use the ''hg'' command to execute actions.
 
  hg
  hg  


To fetch a project from Bitbucket try:
To fetch a project from Bitbucket try:
  hg clone https://www.bitbutcket.org/clux/deathmatchjs/
  hg clone https://www.bitbutcket.org/clux/deathmatchjs/
  <enter user and password>
  <enter user and password>
  ls deathmatchjs
  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.
After making changes, commit your revisions and merge with the revision on the repository server.
  hg commit -m "Changed the font size"
  hg commit -m "Changed the font size"
  hg merge https://www.bitbutcket.org/clux/deathmatchjs/
  hg merge https://www.bitbutcket.org/clux/deathmatchjs/
  <enter user and password>
  <enter user and password>
== References ==
* [http://hgbook.red-bean.com/read/a-tour-of-mercurial-merging-work.html Mercurial merging work]

Latest revision as of 20:57, 12 August 2011

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.

wget http://mercurial.berkwood.com/binaries/Mercurial-1.9.1-py2.7-macosx10.7.zip

Open a terminal window and use the hg command to execute actions.

hg

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>

References