Checkout a version of the repo.

        :param version: Version number.

def setVersion(self, version):
        """
        Checkout a version of the repo.

        :param version: Version number.
        """
        try:
            sha = self.versions(version).commit.sha
            self.git.reset("--hard", sha)
        except Exception, e:
            raise RepoError(e)