tests/hghaveaddon.py
author Boris Feld <boris.feld@octobus.net>
Mon, 21 May 2018 16:25:29 +0200
changeset 3748 8fe8152ff071
parent 2959 ef361938dfa1
permissions -rw-r--r--
compat: update obshashrange test output Mercurial core bfe8ef6e370e seems to have changed the order of some messages. Simply accept the change in the test file. CORE-TEST-OUTPUT-UPDATE: bfe8ef6e370e

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