tests/hghaveaddon.py
author Sushil khanchi <sushilkhanchi97@gmail.com>
Thu, 31 Jan 2019 15:38:48 +0530
branchstable
changeset 4388 20d1ceef2df2
parent 2959 ef361938dfa1
permissions -rw-r--r--
compat: pass contexts to _findlimit() (issue6066) Now _findlimit() in copies module accept context instead of rev number. See https://phab.mercurial-scm.org/D5595

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