tests/hghaveaddon.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Sat, 25 Nov 2017 15:14:50 -0500
changeset 3255 bb3f8c8c1232
parent 2959 ef361938dfa1
permissions -rw-r--r--
stablesort: introduce a mergepoint based method focused on head The things we needs for stable range is head centric. So we simplify the issue by focussing on head.

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