New function get_parent_repository()

Created new function to get repository parent from a repository.
First get the info of the repo child, check if it has repo parent, and
if its true, get the repo parent.