tests/hghaveaddon.py
author Pulkit Goyal <7895pulkit@gmail.com>
Fri, 08 Jun 2018 18:32:48 +0530
branchstable
changeset 3812 25dfa95c37fd
parent 2959 ef361938dfa1
permissions -rw-r--r--
next-prev: add tests showing --merge not respected in some cases This patch adds tests which show that --merge is not respected when you set commands.update.check to any value. This is a bug I wrote few days ago and will fix it in next changeset. I like this process of writing bugs and fixing them.

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