tests/hghaveaddon.py
author Boris Feld <boris.feld@octobus.net>
Fri, 05 Jan 2018 09:51:07 +0100
changeset 3360 1905aac253f0
parent 2959 ef361938dfa1
permissions -rw-r--r--
test: update output to 02fdb8c018aa Now that we have directaccess in core, we get a new warning message when updating to a hidden changeset. Update the tests. CORE-TEST-OUTPUT-UPDATE: 02fdb8c018aa

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