just comparing the text hashes should be enough
On Mon, Apr 27, 2015 at 2:51 PM, Daniel Barrett <danb(a)cimpress.com> wrote:
What is the best way (in code) to locate the most
recent revision of
article in which the text actually changed? That is, the revision was not a
"move" or other non-editing operation?
I figure the logic would be something like:
$r = GetTheMostRecentRevision();
IF $r NOT a "Move"
THEN
return $r
ELSE
walk the list of revisions until the SHA1 value changes
but I don't know how to determine that a revision is a "Move."
Thanks for any tips!
DanB
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l