tests/hghaveaddon.py
author Sushil khanchi <sushilkhanchi97@gmail.com>
Thu, 28 Feb 2019 02:02:18 +0530
changeset 4414 29645d5ba3d9
parent 2959 ef361938dfa1
permissions -rw-r--r--
evolve: in pubdiv resolution make sure that transaction get closed Before this patch it could be possible that transaction won't get closed if res is False in the pubic divergence resolution when continuing the hg evolve.

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