tests/hghaveaddon.py
author Sushil khanchi <sushilkhanchi97@gmail.com>
Sat, 23 Feb 2019 00:47:14 +0530
changeset 4412 dcbe64c954dc
parent 2959 ef361938dfa1
permissions -rw-r--r--
evolve: add tests of relocation case in public divergence These tests cover the cases when "other" is behind the "public" one and we would have to relocate "other" here. It covers all the conflicting and non-conflicting cases.

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