tests/hghaveaddon.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Fri, 20 Oct 2017 20:04:13 +0200
branchmercurial-4.3
changeset 3106 a867d59ea97a
parent 2959 ef361938dfa1
permissions -rw-r--r--
test-compat: revert output changes from phase renaming We keep using the old name for the older version. test has to reflect that.

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