branch | mercurial-4.0 |
changeset 3003 | ddf28837f5af |
parent 2959 | ef361938dfa1 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/hghaveaddon.py Wed Sep 27 01:18:39 2017 +0200 @@ -0,0 +1,14 @@ +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