tests/hghaveaddon.py
author Boris Feld <boris.feld@octobus.net>
Sun, 10 Dec 2017 21:41:56 +0100
branchstable
changeset 3269 e6b980687311
parent 2959 ef361938dfa1
permissions -rw-r--r--
split: add a test demonstrating that split doesn't take the right branch Also add a test to check that the dirstate is in the right state in case the user abort the split.

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