tests/hghaveaddon.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Fri, 07 Sep 2018 00:06:00 -0400
branchstable
changeset 4088 9caf73470c2b
parent 2959 ef361938dfa1
permissions -rw-r--r--
changelog: fix version number

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