tests/hghaveaddon.py
author Pulkit Goyal <7895pulkit@gmail.com>
Thu, 29 Mar 2018 16:38:00 +0530
changeset 3641 ed50f10aacbd
parent 2959 ef361938dfa1
permissions -rw-r--r--
evolve: don't allow updating or commiting when there is interrupted evolve We should make things simple in the starting and restrict user from doing things which can lead to problems. This is same as the rebase behavior.

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