def parents(self, ix):
    rlog = self._revlog
    idx = rlog.index
    revdata = idx[ix]
    prev = revdata[5]
    if (prev != nullrev):
        prev2 = revdata[6]
        if (prev2 == nullrev):
            return [prev]
        return [prev, prev2]
    prev2 = revdata[6]
    if (prev2 != nullrev):
        return [prev2]
    return []
def parents(self, ix):
    rlog = self._revlog
    idx = rlog.index
    revdata = idx[ix]
    prev = revdata[5]
    if (prev != nullrev):
        prev2 = revdata[6]
        if (prev2 == nullrev):
            return [prev]
        return [prev, prev2]
    prev2 = revdata[6]
    if (prev2 != nullrev):
        return [prev2]
    return []