def get_branch_contains(self, sha, resolve=False):

        _rev_cache = self.rev_cache

        try:
            rheads = _rev_cache.rev_dict[sha][3]
        except KeyError:
            return []

        if resolve:
            return [ (k, v) for k, v in _rev_cache.branch_dict if v in rheads ]

        return rheads
return list of reachable head sha ids or (names, sha) pairs if resolve is true
dataset/ETHPy150Open hvr/trac-git-plugin/tracext/git/PyGIT.py/Storage.get_branch_contains