tests/hghaveaddon.py
author Pulkit Goyal <7895pulkit@gmail.com>
Thu, 11 Jan 2018 16:30:46 +0530
changeset 3399 4adf46158b9b
parent 2959 ef361938dfa1
permissions -rw-r--r--
obslog: colorize the description diff shown in obslog -p This patch colorizes the description diff shown in `hg obslog -p`. The labels for the header are different from that of the patch as the main header which says `diff -r <somehash> -r <somehash> <filename>`. Next patch will hack to add that.

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