Lookup a tag object from the repository. The generated tag object is owned by the revision repo and shall not be freed by the user.
pointer to the looked up tag
the repo to use when locating the tag.
identity of the tag to locate.
0 on success; error code otherwise