text: 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;}