def headsetofconnecteds(self, ixs):
    if (not ixs):
        return set()
    rlog = self._revlog
    idx = rlog.index
    headrevs = set(ixs)
    for rev in ixs:
        revdata = idx[rev]
        for i in [5, 6]:
            prev = revdata[i]
            if (prev != nullrev):
                headrevs.discard(prev)
    assert headrevs
    return headrevs
def headsetofconnecteds(self, ixs):
    if (not ixs):
        return set()
    rlog = self._revlog
    idx = rlog.index
    headrevs = set(ixs)
    for rev in ixs:
        revdata = idx[rev]
        for i in [5, 6]:
            prev = revdata[i]
            if (prev != nullrev):
                headrevs.discard(prev)
    assert headrevs
    return headrevs