Differences between revisions 1 and 17 (spanning 16 versions)
Revision 1 as of 2011-11-11 00:25:36
Size: 1544
Editor: mpm
Comment:
Revision 17 as of 2013-08-29 00:26:37
Size: 337
Editor: LeroyFour
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#pragma section-numbers 2
= python-hglib =
A Python library for interfacing with Mercurial's CommandServer

<<TableOfContents>>

== Getting the source ==
The package can be [[http://mercurial.selenic.com/release/python-hglib|downloaded as a source tarball]] or cloned from its primary repository at http://selenic.com/repo/python-hglib.

This library will hopefully soon be packaged by distributors and appear in the usual package pools.

== Installing ==
The package includes a standard distutils setup.py, so should install with:

{{{
$ python setup.py install
}}}
== Basic usage ==
First create an hglib client object:

{{{
import hglib
client = hglib.open("/path/to/repo")
}}}
Now you can perform Mercurial commands with a Python interface:

{{{
commit = client.log("tip")
print commit.author
}}}
For more examples, see the [[http://www.selenic.com/repo/python-hglib/file/tip/examples/|examples/ directory in the source]].

== Compatibility ==
It should be possible to use any version of python-hglib with all versions of Mercurial that support the command server protocol (Mercurial 1.9 or newer).

== Reporting bugs ==
This package is managed by the Mercurial project, so bugs can be reported to the [[javascript:void(0);/*1320970582300*/|main Mercurial BTS]]. Please mention 'hglib' in the subject.

== Contributing code ==
Similarly, code contribution should (roughly) follow the guidelines from ContributingCode.

== See also ==

 * CommandServer
 * MercurialApi



----
CategoryAudit
Greetings! I am Enoch. Doing archery is the thing I love most. Office supervising is my day job today and I don't think I'll change it anytime shortly. Some time ago I chose to reside in Washington nevertheless my spouse wants you to move. I've been working on my url for some time today. Check it out here: http://www.gaychatadult.com

Greetings! I am Enoch. Doing archery is the thing I love most. Office supervising is my day job today and I don't think I'll change it anytime shortly. Some time ago I chose to reside in Washington nevertheless my spouse wants you to move. I've been working on my url for some time today. Check it out here: http://www.gaychatadult.com

PythonHglib (last edited 2017-11-23 05:22:38 by KevinBullock)