tests/hghaveaddon.py
author Pulkit Goyal <7895pulkit@gmail.com>
Wed, 10 Jan 2018 14:53:01 +0530
changeset 3391 d2fc2c2783f8
parent 2959 ef361938dfa1
permissions -rw-r--r--
evolvestate: add a class to wrap the state of `hg evolve` command This patch adds a new file which contains a class which will act as a wrapper for the data to be stored or used during the `hg evolve` command. This patch just introduces the file and does not use it at the moment. The upcoming patches will start using it.

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