265
Comment:
|
1899
use https
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
Santa Cruz-born Sharika Payne is truly hooked on [[http://rwanda-2012.growingsmes.org/sessions/things-remember-regards-travelling-33|Alicante weather,]] rc planes, saltwater aquariums. Finally, she is interested in spending valuable time with her nearest friends. | #pragma section-numbers 2 = python-hglib = A Python library for interfacing with Mercurial's CommandServer <<TableOfContents>> == Getting the source == The package is available on [[https://pypi.python.org/pypi/python-hglib/|PyPI]] or can be cloned from its primary repository at https://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 and Python 3.4. == 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 ---- |
python-hglib
A Python library for interfacing with Mercurial's CommandServer
Contents
1. Getting the source
The package is available on PyPI or can be cloned from its primary repository at https://selenic.com/repo/python-hglib.
2. License
Unlike Mercurial itself, which requires derived works be licensed with the GPLv2+, python-hglib is available under the less restrictive MIT license.
3. 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.
4. 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 examples/ and tests/ dirs in the source.
5. 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 and Python 3.4.
6. Reporting bugs
This package is managed by the Mercurial project, so bugs can be reported to the main Mercurial BTS. Use the 'hglib' component of Mercurial in the component field.
7. Contributing code
Similarly, code contribution should (roughly) follow the guidelines from ContributingChanges. Please flag patches with 'hglib' (eg via patchbomb's --flag switch).
8. See also