tests/hghaveaddon.py
author Anton Shestakov <av6@dwimlabs.net>
Wed, 06 Mar 2019 21:47:08 +0800
changeset 4431 f109917f5c28
parent 2959 ef361938dfa1
permissions -rw-r--r--
evolvecmd: compatibility with older geteffectflag() that took a tuple Before bae6f1418a95 the function took a tuple of 2 arguments instead of these 2 arguments directly.

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