tests/hghaveaddon.py
author Pulkit Goyal <7895pulkit@gmail.com>
Mon, 11 Jun 2018 15:38:43 +0530
changeset 3829 cb45a7173e5b
parent 2959 ef361938dfa1
permissions -rw-r--r--
evolve: factor out logic to merge branches in separate function This patch moves the logic to merge branches while resolving content-divergence to a separate function. This makes code clear and better to understand.

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