1855
Comment: mirror is out of date
|
492
|
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]]. 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 ---- |
Creola is the name people employ to call her and her husband doesn't like it at all. Her spouse and her chose to reside inside Colorado nevertheless she must move due to her family. Administering databases has been her day job for a while nevertheless soon she'll be on her own. She is really keen on to jog plus she is striving to create it a career. See what's fresh on her webpage here: http://tenscomplement.com/college-freshman-offered-free-domain-and-hosting-to-build-online-identity/ |
Creola is the name people employ to call her and her husband doesn't like it at all. Her spouse and her chose to reside inside Colorado nevertheless she must move due to her family. Administering databases has been her day job for a while nevertheless soon she'll be on her own. She is really keen on to jog plus she is striving to create it a career. See what's fresh on her webpage here: http://tenscomplement.com/college-freshman-offered-free-domain-and-hosting-to-build-online-identity/