view tests/hghaveaddon.py @ 4425:43c24cf6d24b stable

evolve: add tests which shows evolve can get confused about copies (issue5930) This test demonstrate that an interrupted evolve can get confused about copies. Next patch will fix this.
author Sushil khanchi <sushilkhanchi97@gmail.com>
date Thu, 07 Mar 2019 01:02:05 +0530
parents ef361938dfa1
children 6a50faea786d
line wrap: on
line source

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