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