tests/hghaveaddon.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Wed, 20 Dec 2017 16:20:26 +0100
changeset 3322 20b6dae466a7
parent 2959 ef361938dfa1
permissions -rw-r--r--
stablesort: use 'depth' in mergepoint tie breaker The parents with the most depth will is considered lower. It has a couple of advantages. 1) the more shallow parent probably have less exclusive revision, 2) it makes Oedipus merge behave like close to the linear case,

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