Allow to pass a rev id to a log entry without making it unpatrolled
authorcenarium <cenarium.sysop@gmail.com>
Tue, 23 Feb 2016 17:17:17 +0000 (18:17 +0100)
committercenarium <cenarium.sysop@gmail.com>
Mon, 14 Mar 2016 15:11:05 +0000 (16:11 +0100)
commitd7a37e8daa8282ccd4e815e1bc0e2adf82a8d467
treefaf0aaaba9b895837165e393ef817895465ba3e2
parent61382243e1394142a44ae3796be90250337d3a31
Allow to pass a rev id to a log entry without making it unpatrolled

This adds new methods to ManualLogEntry that allow to specify that
a log entry is patrollable. RecentChange::newLogEntry then checks
this in order to allow or not unpatrolled status instead of checking
if there is an associated rev id. This allows to associate a revision
to a log entry without possibly making the recent change unpatrolled,
and extensions can implement patrol of actions not dependent on an
associated revision id.

Bug: T127848
Change-Id: I98298047142819b69639e6ca9d77c5ba982a380c
includes/changes/RecentChange.php
includes/filerepo/file/LocalFile.php
includes/logging/LogEntry.php