tests/hghaveaddon.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Thu, 23 Nov 2017 16:53:29 +0100
changeset 3241 0d2c095aeb2a
parent 2959 ef361938dfa1
permissions -rw-r--r--
depthcache: issue a progress bar when loading the depth cache The operation can be in the minute order of magnitude of some larger repository. We better keep the user entertain when he wait.

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