tests/hghaveaddon.py
author Pulkit Goyal <7895pulkit@gmail.com>
Thu, 18 Jan 2018 16:57:19 +0530
changeset 3460 ada7fb453034
parent 2959 ef361938dfa1
permissions -rw-r--r--
evolve: remove not required calls to phases.retractboundary() To make sure phases are preserved during evolve, we started using the phases.new-commit config option. Now we don't need to call phases.retractboundary(). Let's remove the redundant code.

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