Difference between revisions of "Mercurial"

From ArchWiki
Jump to: navigation, search
m (Initial creation)
 
(started filling out the details)
Line 6: Line 6:
 
Mercurial is available from the standard repositories:
 
Mercurial is available from the standard repositories:
 
  # pacman -S mercurial
 
  # pacman -S mercurial
 +
 +
== Use ==
 +
All mercurial commands are initiated with the ''hg'' prefix. To see a list of some of the common commands, run
 +
$ hg help
 +
 +
You can either work with a pre-existing repository (collection of code or files), or create your own to share.
 +
 +
To work with a pre-existing repository, you must clone it to a directory of your choice:
 +
$ mkdir mercurial
 +
$ cd mercurial
 +
$ hg clone http://hg.serpentine.com/tutorial/
 +
 +
To create you own, change to the directory you wish to share and initiate a mercurial project
 +
$ cd myfiles
 +
$ hg init myfiles
  
 
== More Resources ==
 
== More Resources ==
 +
* [http://hgbook.red-bean.com/read/ Mercurial: The Definitive Guide]
 
* [http://bitbucket.org Bitbucket] -- free and commercial hosting of mercurial repositories
 
* [http://bitbucket.org Bitbucket] -- free and commercial hosting of mercurial repositories

Revision as of 03:10, 2 May 2010

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Mercurial#)

Mercurial (commonly referred to as hg) is a distributed version control system written in Python and is similar in many ways to Git, Bazaar and darcs.

Installation

Mercurial is available from the standard repositories:

# pacman -S mercurial

Use

All mercurial commands are initiated with the hg prefix. To see a list of some of the common commands, run

$ hg help

You can either work with a pre-existing repository (collection of code or files), or create your own to share.

To work with a pre-existing repository, you must clone it to a directory of your choice:

$ mkdir mercurial
$ cd mercurial
$ hg clone http://hg.serpentine.com/tutorial/

To create you own, change to the directory you wish to share and initiate a mercurial project

$ cd myfiles
$ hg init myfiles

More Resources