Discard comments in mergeMessageFileList.php's --list-file file
authorOri Livneh <ori@wikimedia.org>
Thu, 18 Jul 2013 22:46:18 +0000 (15:46 -0700)
committerOri Livneh <ori@wikimedia.org>
Wed, 24 Jul 2013 04:58:30 +0000 (21:58 -0700)
commit17ad68087c561e39f5ff4abd6ada74d1de80c22c
treeacac6820e2d51c5f3f77385af7c032a0f363a324
parent1d866a533dde1e0a6bab9524ce4197e031b22779
Discard comments in mergeMessageFileList.php's --list-file file

We're currently working around a bug in an extension (bug 51643) by deviating
from lexicographical order in extension-list to ensure that one extension is
loaded before another. It'd be nice to be able to document that in the file
itself, but there is no convention for adding comments to the file;
mergeMessageFileList.php treats every line as a file name. We've previously
talked about including a comment header in the file as part of our reponse to
bug 50347.

This patch adds some minimal syntax-handling to mergeMessageFileList.php which
causes it to treat as a comment any substring starting with '#' and extending
to the end of the line. This change implements part of what aude projected for
Gerrit change 71056, but I don't see the harm in pushing ahead with it here.

Change-Id: I4b296aa69ad77ecb51f1a0e27ce6a698cf09732b
maintenance/mergeMessageFileList.php