Differences between revisions 6 and 19 (spanning 13 versions)
Revision 6 as of 2012-01-18 09:23:54
Size: 1967
Editor: IdanKamara
Comment:
Revision 19 as of 2013-08-31 03:58:49
Size: 259
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.

It is also available on [[http://pypi.python.org/pypi/python-hglib/|PyPI]].

== License ==

Unlike Mercurial itself, which requires derived works be licensed with the [[License|GPLv2+]], python-hglib is available under the less restrictive [[http://www.selenic.com/repo/python-hglib/file/tip/LICENSE|MIT license]].

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

{{{
$ python setup.py install
}}}

Gentoo-users can just `emerge dev-python/hglib`.

== 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/]] and [[http://www.selenic.com/repo/python-hglib/file/tip/tests/|tests/]] dirs 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).
Supported Python versions are 2.4-2.7.

== Reporting bugs ==
This package is managed by the Mercurial project, so bugs can be reported to the [[BugTracker|main Mercurial BTS]]. Please mention 'hglib' in the subject.

== Contributing code ==
Similarly, code contribution should (roughly) follow the guidelines from ContributingCode. Please flag patches with 'hglib' (eg via patchbomb's --flag switch).

== See also ==

 * CommandServer
 * MercurialApi



----
CategoryAudit
Beaumont-born Austin Brooks interests includes [[http://girlswithblank.com/ShizukoNelson77|auxiliares spain forum]] collectibles, collecting artwork. Lastly, things he value among the most is travelling by air, exploring different cities including Thailand.

Beaumont-born Austin Brooks interests includes auxiliares spain forum collectibles, collecting artwork. Lastly, things he value among the most is travelling by air, exploring different cities including Thailand.

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