tests/hghaveaddon.py
author Faheem Mitha <faheem@faheem.info>
Sat, 19 May 2018 18:26:36 +0530
branchstable
changeset 3745 9fa3585b160f
parent 2959 ef361938dfa1
permissions -rw-r--r--
debian: add line to clean-docs target to delete additional docs file

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