tests/hghaveaddon.py
author Sushil khanchi <sushilkhanchi97@gmail.com>
Tue, 06 Nov 2018 10:43:35 +0530
branchstable
changeset 4230 e796835fe6b3
parent 2959 ef361938dfa1
permissions -rw-r--r--
evolvecmd: _possibledestination() skip visiting empty parent I see that even in the case when "parent == -1" we are visiting that also and find succsets for that and in last -1 is being added in the set of possible destination. Why not skip 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