import: Don't try duplicate detection when the sha1 is unavailable
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 23 Apr 2018 20:57:28 +0000 (16:57 -0400)
committerLegoktm <legoktm@member.fsf.org>
Thu, 26 Apr 2018 05:13:30 +0000 (05:13 +0000)
commitaa54a4caa3d592bcae9f44549a46cd655388b79b
tree828d3c12e6603cd714be92a272e0853ef87356dc
parent1bd573752fcdc21f26780258029ed38b90093ed7
import: Don't try duplicate detection when the sha1 is unavailable

Trying to compare a string field with 0 (cast from false) raises an
error in PostgreSQL, and we're expecting it to not detect duplicates in
that situation anyway.

Change-Id: Ibff6daee6bbec00e37532e03c9ece041ba612de0
(cherry picked from commit f09d66de2ab88e3ed39fc21b3805cea90eee5bfe)
includes/import/ImportableOldRevisionImporter.php