tests/hghaveaddon.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Fri, 29 Mar 2019 15:15:07 +0100
changeset 4472 5dbaabfe2c59
parent 2959 ef361938dfa1
permissions -rw-r--r--
test: fix a phase divergence test case to actually not contains conflict The previous test case had a conflict, but that conflict is currently not raise by phase divergence resolution. This is an independent bug to solve.

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