tests/hghaveaddon.py
author Martin von Zweigbergk <martinvonz@google.com>
Mon, 09 Dec 2019 10:05:24 -0800
changeset 5342 265e029785ae
parent 2959 ef361938dfa1
permissions -rw-r--r--
tests: show crash from divergence resolution resulting in empty commit When relocating a commit results in an empty commit (because the changes are already in the destination), we get a TypeError from 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