Mercurial > kallithea
view tox.ini @ 6947:c326db109854
vcs: add support for Mercurial annotate in Mercurial 4.4
Mercurial fctx.annotate() returns tuples with two elements: info about the
annotate line and the actual line. The code is changed to clarify that.
After Mercurial 4.4 with https://www.mercurial-scm.org/repo/hg/rev/2e32c6a31cc7 ,
the info is no longer a tuple but an attr object. Assume fctx is available as
an attribute, but catch exceptions and fall back to indexing as before.
That can't easily be done in hgcompat, so we do it inline.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Mon, 23 Oct 2017 00:57:28 +0200 |
parents | dd676fdeda0f |
children | ab30729c735c |
line wrap: on
line source
[tox] minversion = 1.8 envlist = py{26,27}-pytest [testenv] setenv = PYTHONHASHSEED = 0 deps = -r{toxinidir}/dev_requirements.txt py26-pytest: unittest2 python-ldap python-pam commands = pytest: py.test {posargs}