From: Eric Wong Date: Tue, 14 May 2019 02:04:43 +0000 (+0000) Subject: searchidx: fix incremental index with indexlevel=basic on v1 X-Git-Tag: v1.2.0~284 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=1b7e935ab1690e28d790d8db5af2714f13c258cc;hp=1b7e935ab1690e28d790d8db5af2714f13c258cc;p=public-inbox.git searchidx: fix incremental index with indexlevel=basic on v1 We were reindexing the full history every invocation of -index when Xapian was not used because we were incorrectly relying on 'last_commit' metadata stored in Xapian. Rewrite the indexing logic to be less confusing while we're at it, since we rely on `git merge-base --is-ancestor' nowadays. Furthermore, we need to handle message removals from the overview index correctly when Xapian is not in use. Co-authored-by: Eric W. Biederman ---