tests/hghaveaddon.py
author Kyle Lippincott <spectral@google.com>
Thu, 25 Jul 2019 09:59:41 -0700
branchstable
changeset 4765 c1d0faaa5b92
parent 2959 ef361938dfa1
permissions -rw-r--r--
prune: fix small grammatical issues in help text

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