From: Eric Wong Date: Thu, 31 Oct 2019 03:12:20 +0000 (+0000) Subject: solvergit: deal with false-positive dfpost: results X-Git-Tag: v1.2.0~9 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=3f4a8611c37294a1938ae5ac644c24290d1d14ae;hp=3f4a8611c37294a1938ae5ac644c24290d1d14ae;p=public-inbox.git solvergit: deal with false-positive dfpost: results When solving for blob 81c1164ae5 in https://public-inbox.org/git/, at least two messages get indexed with the dfpost result for that blob (after fixing MsgIter to decode all text/* parts): 1. https://public-inbox.org/git/b9fb52b8-8168-6bf0-9a72-1e6c44a281a5@oracle.com/ 2. https://public-inbox.org/git/56664222-6c29-09dc-ef78-7b380b113c4a@oracle.com/ However, only the first message contains a usable patch. So we must adjust SolverGit to account for multiple messages hitting the same "dfpost:" search result and attempt "git apply" on all results, not just the first. In the future, changes to SearchIdx.pm may rid us of invalid search results and speed up performance (at the expense of developer/indexing time); but we need to account for old search indices, first. ---