Lookup a tree object from the repository.
Pointer to the looked up tree
The repo to use when locating the tree.
Identity of the tree to locate.
0 or an error code