分类目录

HG – Mercurial is a free, distributed source control management tool

官网:http://mercurial.selenic.com/
Mercurial is a free, distributed source control management tool. It efficiently handles projects of any size and offers an easy and intuitive interface.

Basic install

$ make # see install targets
$ make install # do a system-wide install
$ hg debuginstall # sanity-check setup
$ hg # see help

Quick Start

Clone a project and create a patch

$ hg clone http://hg-scm.org/hello
$ cd hello
$ (edit files)
$ hg add (new files)
$ hg commit -m ‘My changes’
$ hg export tip > patch.diff

Create a project and commit

$ hg init (project-directory)
$ cd (project-directory)
$ (add some files)
$ hg add
$ hg commit -m ‘Initial commit’

FAQ

abort: couldn’t find mercurial libraries in [/usr/local/bin / /usr/lib/python25.zip /usr/lib/python2.5 /usr/lib/python2.5/plat-linux2 /usr/lib/python2.5/lib-tk /usr/lib/python2.5/lib-dynload /usr/lib/python2.5/site-packages /usr/lib/python2.5/site-packages/Numeric /usr/lib/python2.5/site-packages/gst-0.10 /usr/lib/python2.5/site-packages/gtk-2.0 /usr/lib/python2.5/site-packages/scim-0.1]
(check your install and PYTHONPATH)

A: You should set up the environment variable PYTHONPATH.

PYTHONPATH=/usr/local/lib/python2.5/site-packages
export PYTHONPATH

Example

http://www.process-one.net/en/blogs/article/using_google_wave_reference_implementation_with_ejabberd/

$> hg clone https://wave-protocol.googlecode.com/hg/ wave-protocol

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>