]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
cindex: rename --associate to --join, test w/ real repos
authorEric Wong <e@80x24.org>
Tue, 21 Nov 2023 12:43:15 +0000 (12:43 +0000)
committerEric Wong <e@80x24.org>
Tue, 21 Nov 2023 21:37:26 +0000 (21:37 +0000)
commitfe3883762faf67fd6c4624ee721000e1f36bc59b
tree1fd745e8b42b6617b803ab2eac51b89e21a14768
parent0f92d4d5fc65bdec2b3cef7679480422e818f352
cindex: rename --associate to --join, test w/ real repos

The association data is just stored as deflated JSON in Xapian
metadata keys of shard[0] for now.  It should be reasonably
compact and fit in memory for now since we'll assume sane,
non-malicious git coderepo history, for now.

The new cindex-join.t test requires TEST_REMOTE_JOIN=1 to be
set in the environment and tests the joins against the inboxes
and coderepos of two small projects with a common history.

Internally, we'll use `ibx_off', `root_off' instead of `ibx_id'
and `root_id' since `_id' may be mistaken for columns in an SQL
database which they are not.
MANIFEST
lib/PublicInbox/CodeSearch.pm
lib/PublicInbox/CodeSearchIdx.pm
lib/PublicInbox/TestCommon.pm
lib/PublicInbox/XapHelper.pm
lib/PublicInbox/xap_helper.h
script/public-inbox-cindex
t/cindex-join.t [new file with mode: 0644]
t/cindex.t