parseCommit or lookupCommit is the better way to do this.  Its dangerous to use createCommit directly because you might create two different RevCommits with the same ObjectId within the walker pool.  That will confuse flags later during the traversal algorithm.