Introduce config var for moved-paragraph-detection threshold
authorTobias Gritschacher <tobias.gritschacher@wikimedia.de>
Thu, 8 Jun 2017 14:59:21 +0000 (16:59 +0200)
committerTobias Gritschacher <tobias.gritschacher@wikimedia.de>
Tue, 18 Jul 2017 09:07:04 +0000 (11:07 +0200)
commit76e64c3afe7cb24cf99ea489babc68813986882f
treea4d2780940eb8cf41b7c0ee51613e07a95294d62
parentb87a4fba8a27fc1c683a01560c6d932acfd07ce6
Introduce config var for moved-paragraph-detection threshold

This introduces a configuration variable for the bailout threshold for
the moved-paragraph-detection in wikidiff2.
This allows to rollout a new version of wikidiff2 that supports
detecting changes in moved paragraphs without changing behaviour of all
wikis in production as the default value of the setting (0) will leave the
new feature disabled.
Compatibility with older versions of wikidiff2 is retained by checking for
the version number of wikidiff2 and calling the method without the 4th
parameter if the version is < 0.3.0.

Bug: T166571
Change-Id: Ic01054354a4fbba410e58c9873edcbde797f883d
includes/DefaultSettings.php
includes/diff/DifferenceEngine.php
tests/phan/stubs/wikidiff.php