':return: The parent revision ID for the given hexsha.'

def get_parent_for_revision(self, child_hexsha):

    result = []
    for commit in self._repo.iter_commits():
        if (commit.hexsha == child_hexsha):
            result = [c.hexsha for c in commit.parents]
    return result
