]> Sergey Matveev's repositories - public-inbox.git/commit
thread: last Reference always wins
authorEric Wong <e@80x24.org>
Sat, 10 Dec 2016 01:09:50 +0000 (01:09 +0000)
committerEric Wong <e@80x24.org>
Sat, 10 Dec 2016 03:29:07 +0000 (03:29 +0000)
commitc6a8fdf71e2c336f6e591c6f4005c8e922c8f2df
treefd15d7ce7045145797a3161df26b5e20d336bd7f
parentdecbc59daa3b08e58e749b5bd88a9d0cbbb7e14a
thread: last Reference always wins

Since we use SearchMsg from Xapian data, we can be
assured we do not get self-referential {references}
field.

However, we may need to be more careful when checking
has_descendent for loops, as blindly calling add_child
could open us up to that possibility...
lib/PublicInbox/SearchThread.pm
t/thread-cycle.t