tests/hghaveaddon.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Mon, 27 Aug 2018 00:18:06 +0200
branchstable
changeset 4017 c307ce1d9009
parent 2959 ef361938dfa1
permissions -rw-r--r--
sqlcache: passe better connection option These new options should help with handling transaction consistency and database access on high load.

import hghave

@hghave.check("docgraph-ext", "Extension to generate graph from repository")
def docgraph():
    try:
        import hgext.docgraph
        hgext.docgraph.cmdtable # trigger import
    except ImportError:
        try:
            import hgext3rd.docgraph
            hgext3rd.docgraph.cmdtable # trigger import
        except ImportError:
            return False
    return True