public RevTree parseTree(AnyObjectId id)throws MissingObjectException, IncorrectObjectTypeException,IOException {RevObject c = peel(parseAny(id));final RevTree t;if (c instanceof RevCommit)t = ((RevCommit) c).getTree();else if (!(c instanceof RevTree))throw new IncorrectObjectTypeException(id.toObjectId(),Constants.TYPE_TREE);elset = (RevTree) c;parseHeaders(t);return t;}

public virtual RevTree ParseTree(AnyObjectId id){RevObject c = Peel(ParseAny(id));RevTree t;if (c is RevCommit){t = ((RevCommit)c).Tree;}else{if (!(c is RevTree)){throw new IncorrectObjectTypeException(id.ToObjectId(), Constants.TYPE_TREE);}else{t = (RevTree)c;}}ParseHeaders(t);return t;}
