Differences between revisions 20 and 21
Revision 20 as of 2013-08-31 04:08:29
Size: 1882
Editor: KevinBot
Comment: spam spam spam spammety spam
Revision 21 as of 2013-09-01 04:02:31
Size: 440
Editor: AdamLarry
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 is available on [[http://pypi.python.org/pypi/python-hglib/|PyPI]] or can be cloned from its primary repository at http://selenic.com/repo/python-hglib.

== 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]]. Use the 'hglib' component of Mercurial in the component field.

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

== See also ==

 * CommandServer
 * MercurialApi



----
Lionel Stockstill is what's composed on his start certification and he feels cozy when individuals use the full identify. Administering databases is how he will make cash. One particular of the really finest things in the earth for him is taking part in crochet but he hasn't manufactured a dime with it. Arkansas has usually been his residing location. You can often discover his web page right here: http://neck328jar.wordpressy.pl/?p=6

Lionel Stockstill is what's composed on his start certification and he feels cozy when individuals use the full identify. Administering databases is how he will make cash. One particular of the really finest things in the earth for him is taking part in crochet but he hasn't manufactured a dime with it. Arkansas has usually been his residing location. You can often discover his web page right here: http://neck328jar.wordpressy.pl/?p=6

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