Do not use real message names in 'All_system_messages' preprocessor test
authorBartosz Dziewoński <matma.rex@gmail.com>
Wed, 8 Mar 2017 15:04:27 +0000 (16:04 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Wed, 8 Mar 2017 16:02:53 +0000 (17:02 +0100)
commitbebe29662b91ace6f6114215c8c1a3831a6c4109
treea29a4606ed53ccc72ef06d72f7d55a04209e1531
parent3a2a707546344574c33f7ad7cbff46bfa2b74443
Do not use real message names in 'All_system_messages' preprocessor test

This file seems to be a stress-test for the MediaWiki preprocessor.
It doesn't really matter whether the messages references here exist.
As messages are occasionally renamed or deleted, and since this file
was generated in 2011, people keep getting confused when they grep
for a message name and run into this list (and sometimes needlessly
spend their time updating this file, as seen in its Git history).

This commit replaces all of the message names with their SHA1 hash
truncated to 8 hex characters.

Regexps used for matching:
(?<=\?title=MediaWiki\:)([^&{}<>|\[\]]+)
(?<=int:)([^&{}<>|\[\]]+)
(?<=\[\[MediaWiki_talk:)([^&{}<>|\[\]]+)
(?<=action=edit )([^&{}<>|\[\]]+)

Change-Id: I52a71c0cc0e6fa21a61420d52df755066c6e9a08
tests/parser/preprocess/All_system_messages.expected
tests/parser/preprocess/All_system_messages.txt