tests/hghaveaddon.py
author Sushil khanchi <sushilkhanchi97@gmail.com>
Fri, 22 Feb 2019 23:57:18 +0530
changeset 4406 450487b4e1a3
parent 2959 ef361938dfa1
permissions -rw-r--r--
tests: update the title of a test as it's not what it says I see that this test has conflict in relocation and in merging also. We do have a test for the case when only relocation leads to conflict.

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