tests/hghaveaddon.py
author Sushil khanchi <sushilkhanchi97@gmail.com>
Tue, 06 Nov 2018 15:53:18 +0530
branchstable
changeset 4231 3eb78bdcdd7c
parent 2959 ef361938dfa1
permissions -rw-r--r--
topic: improve UX by using pager only when we should Before this patch we were using pager in every case of topic command, either it is setting up a new topic or clearing the active topic. After this patch it will not use pager in following commands: $ hg topic [TOPIC] -r [rev] $ hg topic --clear

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