tests/hghaveaddon.py
author Boris Feld <boris.feld@octobus.net>
Fri, 31 Aug 2018 14:26:37 +0200
changeset 4054 46cd437fd3d2
parent 2959 ef361938dfa1
permissions -rw-r--r--
pick: fix last references of grab in code Grab was still referenced on comments and variable names.

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