view tests/hghaveaddon.py @ 5141:591a0afd2ef3

tests: update graph output after core change CORE-TEST-OUTPUT-UPDATE: 14d0e89520a2
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 04 Mar 2020 15:09:22 +0100
parents ef361938dfa1
children 6a50faea786d
line wrap: on
line source

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