Re: [JGIT PATCH] Fix data corruption in DirCacheIterator when EmptyTreeIterator is used
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- May 11, 2009, 19:44 UTC
- Message-ID
- <20090511194429.GM30527@spearce.org>
- In-Reply-To
- <200905112059.58212.robin.rosenberg.lists@dewire.com>
Robin Rosenberg <robin.rosenberg.lists@dewire.com> wrote:
> > Shouldn't we update some unit tests too? The dircache must be reliable.
I see you ignored the remark I put in the cover letter below the ---.
I think we should have unit tests too. I just can't come up with a way test the fix to prevent regression. And I don't have any more time for it probably the rest of this week. I'd rather have the corruption fix in the tree with no test than continue to have surprising corruption under certain cases. But if you or Mark can offer a test, I'd love to have it.
-- Shawn.