tests/hghaveaddon.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Sat, 09 Dec 2017 17:14:53 +0100
changeset 3244 d5a7edd5d008
parent 2959 ef361938dfa1
permissions -rw-r--r--
stablerange: update the filename to avoid cache confusion The schema validation seems to not work as well as intended, we update the file name to make sure there will be no confusion.

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