couchbaselabs/TouchDB-iOS — pull request #62 by lambmj (2012-04-06 03:08:27+00:00)
Title: Include prior current/undeleted documents in conflicts

I had designed a view to keep track of conflicts using the recently added`_conflicts` property. I found that some conflicts weren't being passed to my view's map function. Looking at the TDView.m (lines 218-223) it appears that only conflicts included in the current re-indexing (sequence>lastSequence) were noted as conflicts and passed in the `_conflicts` property. I added code to find and include conflicts that were included in previous indexing attempts.