def parents(self):
        """
        Returns list of parents changesets.
        """
        return [self.repository.get_changeset(parent.rev())
                for parent in self._ctx.parents() if parent.rev() >= 0]
def parents ( self ) : return [ self . repository . get_changeset ( parent . rev ( ) ) for parent in self . _ctx . parents ( ) if parent . rev ( ) >= 0 ]
Returns list of parents changesets.