Antoine Musso [Wed, 30 Jan 2013 14:29:40 +0000 (15:29 +0100)]
style: normalize end of files
By PSR2 PHP Standard, the files should ends with exactly one newline.
Some of our files have 2 or more and some other were missing a newline.
Fix almost all occurences of CodeSniffer sniff:
PSR2.Files.EndFileNewline.TooMany
I have not fixed the selenium files, I believe we will drop them.
Change-Id: I89fca8c1786fee94855b7b77bb0f364001ee84b6
Translation updater bot [Sat, 2 Feb 2013 21:14:31 +0000 (21:14 +0000)]
Localisation updates from translatewiki.net.
Change-Id: I2061d9581a4644807955dc566a7a4f535879808d
jenkins-bot [Sat, 2 Feb 2013 11:07:57 +0000 (11:07 +0000)]
Merge "Include Postgres tables and maintenance scripts for Change I23c47c2c"
jenkins-bot [Sat, 2 Feb 2013 00:14:08 +0000 (00:14 +0000)]
Merge "refactor Database::makeSelectOptions"
GWicke [Fri, 1 Feb 2013 22:59:59 +0000 (22:59 +0000)]
Merge "New list and table attr. tests based on recent Parsoid bug fixes."
Translation updater bot [Fri, 1 Feb 2013 22:01:22 +0000 (22:01 +0000)]
Localisation updates from translatewiki.net.
Change-Id: I039071abeaa87e70cb8d1156238f127a5aec956d
Subramanya Sastry [Fri, 1 Feb 2013 21:00:55 +0000 (15:00 -0600)]
New list and table attr. tests based on recent Parsoid bug fixes.
Change-Id: I51620f2dcf8d6d4cd4aebf658bef2cef2232bd39
Brent Garber [Tue, 22 Jan 2013 00:08:09 +0000 (00:08 +0000)]
Include Postgres tables and maintenance scripts for Change I23c47c2c
Change-Id: I1b2fe2b80700678935bf6d28c3a48538d044d3f4
Tim Landscheidt [Wed, 26 Dec 2012 03:56:17 +0000 (03:56 +0000)]
Add column job_attempts and index job_cmd_token_id to PostgreSQL.
* (bug 43416) This ports
cd000590ee694af73edb05b5e37b60b5e2b77fd5.
Change-Id: I3d4c7d906f6465b3a054df2fc0cd8f564173ed2b
Aaron Schulz [Fri, 1 Feb 2013 18:55:07 +0000 (10:55 -0800)]
[LockManager] Renamed getBucketFromKey() -> getBucketFromPath().
Change-Id: I825dcd255f0b85f81bf925abf46bc46b1fe42e9f
jenkins-bot [Fri, 1 Feb 2013 18:53:27 +0000 (18:53 +0000)]
Merge "Profiling for hook calls."
Aaron Schulz [Fri, 1 Feb 2013 18:29:10 +0000 (10:29 -0800)]
[LockManager] Generallized wiki field to a domain field.
* In some cases (like certain qualified file backends), a domain
may be desired that is not simple a wiki ID.
* Also added a LockManangerGroup::config() function to export
the configuration of a lock manager.
Change-Id: I5a75c55be3cc9017ed8a717d6d30e466fd00340f
jenkins-bot [Fri, 1 Feb 2013 18:16:09 +0000 (18:16 +0000)]
Merge "Fixed use of long memcached keys in AllPages."
jenkins-bot [Fri, 1 Feb 2013 18:11:05 +0000 (18:11 +0000)]
Merge "[FileBackend] Added more documentation."
jenkins-bot [Fri, 1 Feb 2013 18:06:04 +0000 (18:06 +0000)]
Merge "[LockManager] Updated DBLockManager for cross-wiki support."
jenkins-bot [Fri, 1 Feb 2013 18:04:13 +0000 (18:04 +0000)]
Merge "[LockManager] Split QuorumLockManager into its own file."
jenkins-bot [Fri, 1 Feb 2013 18:02:05 +0000 (18:02 +0000)]
Merge "Log profiling info from maintenance scripts."
daniel [Fri, 1 Feb 2013 15:17:12 +0000 (16:17 +0100)]
Add return to HttpError::getStatusCode.
Oops...
Change-Id: I4fb5bd11be340870d903d62e1329b1181f72e695
daniel [Thu, 31 Jan 2013 14:39:37 +0000 (15:39 +0100)]
Profiling for hook calls.
This is similar to profiloing for db queries.
Change-Id: I14051f8aff30d249f4197270337e4080adfa5417
daniel [Thu, 31 Jan 2013 14:36:29 +0000 (15:36 +0100)]
Log profiling info from maintenance scripts.
Previously, maintenance scripts did not log profiling info.
Change-Id: Ib63dd54b815cca774cd764f28505f9dbdfd02cfc
Aaron Schulz [Fri, 1 Feb 2013 06:28:55 +0000 (22:28 -0800)]
[LockManager] Split QuorumLockManager into its own file.
Change-Id: Ib487a39b04ac9de3449695ac388c95ae45933469
Aaron Schulz [Fri, 1 Feb 2013 06:06:57 +0000 (22:06 -0800)]
[FileBackend] Added more documentation.
Change-Id: I6a0f0dc253fbe82a58345d4179248071062286ff
Aaron Schulz [Fri, 1 Feb 2013 02:26:24 +0000 (18:26 -0800)]
[LockManager] Updated DBLockManager for cross-wiki support.
Change-Id: If02274a3173463ce66037221f494a1ee68ffa51d
Aaron Schulz [Thu, 31 Jan 2013 03:27:53 +0000 (19:27 -0800)]
Made nextJobDB.php respect $wgJobTypesExcludedFromDefaultQueue.
Change-Id: I22de34fc7be7b701180511fad3c16154ffdf638b
jenkins-bot [Thu, 31 Jan 2013 21:21:38 +0000 (21:21 +0000)]
Merge "(bug 5346) Make cats which are redirects italic in category links."
Brian Wolff [Thu, 27 Dec 2012 08:24:36 +0000 (04:24 -0400)]
(bug 5346) Make cats which are redirects italic in category links.
Due to bug 3311, redirects in category namespace don't work.
Furthermore they appear blue, and there is no indication anything
is wrong. This change makes the link italic to indicate to the
user that it is not a normal redirect. Only links in the
category links section of the page are affected
My only concern with this is potentially italics might not be
approrpriate in non-english languages (??). One of the main
reasons for italics is that a different colour is a larger
departure from current ui where link colours have meaning
and we already use italics for redirects on category pages,
and special:allpages.
Change-Id: I1fba042ca301844b603759c2db2cab28c3297e93
jenkins-bot [Thu, 31 Jan 2013 21:05:25 +0000 (21:05 +0000)]
Merge "bug 44136: Don't rollback after successful commit"
jenkins-bot [Thu, 31 Jan 2013 20:49:56 +0000 (20:49 +0000)]
Merge "Force case-sensitivity on the LIKE operator, to ensure similar behaviour between MySQL and SQLite"
jenkins-bot [Thu, 31 Jan 2013 20:46:49 +0000 (20:46 +0000)]
Merge "Fix self link issues about titles in different or mixed variants"
Translation updater bot [Thu, 31 Jan 2013 20:46:38 +0000 (20:46 +0000)]
Merge "Localisation updates from translatewiki.net."
jenkins-bot [Thu, 31 Jan 2013 20:39:27 +0000 (20:39 +0000)]
Merge "Followup I888c616e: one more string to localize."
jenkins-bot [Thu, 31 Jan 2013 20:28:19 +0000 (20:28 +0000)]
Merge "Avoid raw SQL queries in Maintenance::purgeRedundantText()"
jenkins-bot [Thu, 31 Jan 2013 20:23:34 +0000 (20:23 +0000)]
Merge "Followup I888c616e: Keep IRC line format unchanged."
Aaron Schulz [Thu, 31 Jan 2013 20:23:16 +0000 (12:23 -0800)]
Fixed use of long memcached keys in AllPages.
Change-Id: I1df841aff02aa6de5c9e51008f36e745824da567
jenkins-bot [Thu, 31 Jan 2013 20:19:14 +0000 (20:19 +0000)]
Merge "api: remove duplicate __contruct calls"
jenkins-bot [Thu, 31 Jan 2013 20:17:20 +0000 (20:17 +0000)]
Merge "fix hardcoded quote in Special:DoubleRedirects/BrokenRedirects"
jenkins-bot [Thu, 31 Jan 2013 20:15:14 +0000 (20:15 +0000)]
Merge "Changed Message::content() to pass $this to MessageContent."
Translation updater bot [Thu, 31 Jan 2013 20:12:34 +0000 (20:12 +0000)]
Localisation updates from translatewiki.net.
Change-Id: I1615132bf185ebaa387ec2a3216137750d4d74e2
umherirrender [Mon, 28 Jan 2013 21:11:10 +0000 (22:11 +0100)]
fix some spacing
Change-Id: I2a59eb22bb8acf01b560507a48d6be55d9c87de7
jenkins-bot [Thu, 31 Jan 2013 19:58:11 +0000 (19:58 +0000)]
Merge "Genderize user namespace for 'be' locale"
jenkins-bot [Thu, 31 Jan 2013 15:16:56 +0000 (15:16 +0000)]
Merge "Make Sites::singleton() actually return a singleton."
jenkins-bot [Thu, 31 Jan 2013 15:15:05 +0000 (15:15 +0000)]
Merge "Add getters to HttpError, to use it in tests."
daniel [Thu, 31 Jan 2013 14:33:22 +0000 (15:33 +0100)]
Make Sites::singleton() actually return a singleton.
Sites::singleton() was returning a new instance for every call,
rendering in-process caching ineffective. This was causing extreme
slowness on some configurations (about factor 100).
Change-Id: I1e28afea8710b44542c55db150ad37518a5a5df1
Pavel Selitskas [Thu, 31 Jan 2013 09:09:47 +0000 (12:09 +0300)]
Genderize user namespace for 'be' locale
Per https://be.wikipedia.org/wiki/Вікіпедыя:Форум#filengenderize
Change-Id: Ia3287902ea45ef55d8c8aa061fd753caacc62521
jenkins-bot [Thu, 31 Jan 2013 06:59:24 +0000 (06:59 +0000)]
Merge "Installer: Fix double escaping of config-download-localsettings."
Aaron Schulz [Thu, 31 Jan 2013 04:14:56 +0000 (20:14 -0800)]
[JobQueue] Re-try jobs that fail normally.
* Jobs will be re-attempted if run() returns false.
This means that claimTTL is useful beyond just the case
where runners get killed in the middle of a job or an
uncaught exception is thrown.
* Moved MAX_ATTEMPTS constant up to base class.
* Clarified docs a bit.
Change-Id: Id7f970e82a63aa563e9a7a023ce32e5d6680433a
MarkAHershberger [Sat, 19 Jan 2013 20:20:29 +0000 (15:20 -0500)]
Bug 44157 - The return value of realpath should be tested
Change-Id: Id178ee2fa5e294e858ee2af188e02c67f3205da9
jenkins-bot [Thu, 31 Jan 2013 02:50:43 +0000 (02:50 +0000)]
Merge "Make jquery.client recognize Iceweasel"
Timo Tijhof [Thu, 31 Jan 2013 01:19:25 +0000 (17:19 -0800)]
Installer: Fix double escaping of config-download-localsettings.
The link was outputted as:
"Download <code>LocalSettings.php</code>"
rendered as:
"Download <code>LocalSettings.php</code>"
screenshot:
http://cl.ly/image/1y2O3y2S2B19
Change-Id: I55a677b2a0f83dc6627d712584b8faa00e413b8b
Follows-up: Iaa2c89d6
Bug: 44526
daniel [Wed, 30 Jan 2013 21:43:43 +0000 (22:43 +0100)]
Add getters to HttpError, to use it in tests.
Change-Id: I1165063ebdbcc29ae26998bd6ab74782dc0ecdc5
jenkins-bot [Wed, 30 Jan 2013 21:28:13 +0000 (21:28 +0000)]
Merge "Fix double colons in api help output"
jenkins-bot [Wed, 30 Jan 2013 21:26:10 +0000 (21:26 +0000)]
Merge "[LockManager] Refactoring to allow proper cross-wiki support."
jenkins-bot [Wed, 30 Jan 2013 21:23:55 +0000 (21:23 +0000)]
Merge ".gitignore Composer related files"
jenkins-bot [Wed, 30 Jan 2013 21:20:04 +0000 (21:20 +0000)]
Merge "(bug 44160) Fix invalid link of `others` during installation"
Translation updater bot [Wed, 30 Jan 2013 20:26:04 +0000 (20:26 +0000)]
Localisation updates from translatewiki.net.
Change-Id: If09fc6a3f1c9abc491beed0f34a9811ff2abf844
Reedy [Wed, 30 Jan 2013 19:19:18 +0000 (19:19 +0000)]
Fix double colons in api help output
Get links from the [[Main Page]]::
api.php?action=query&prop=links&titles=Main%20Page
Get information about the link pages in the [[Main Page]]::
api.php?action=query&generator=links&titles=Main%20Page&prop=info
Get links from the Main Page in the User and Template namespaces::
api.php?action=query&prop=links&titles=Main%20Page&plnamespace=2|10
Change-Id: I3645bd72d80aef3f99da7f8f5fa1d63a1b28ad78
daniel [Tue, 22 Jan 2013 11:59:23 +0000 (12:59 +0100)]
Better way for extensions to add to ParserOutput.
Extensions sometimes need to stash information in the ParserOutput
for later use. This change provides a clean way to do that.
Change-Id: I8bc571d13c9a70bb71430862c2ab679ff1947126
Catrope [Wed, 30 Jan 2013 01:42:39 +0000 (17:42 -0800)]
Make jquery.client recognize Iceweasel
Change-Id: Ide927219fc2a102a9c0adad9b39f155dfb86c27d
Translation updater bot [Tue, 29 Jan 2013 20:45:06 +0000 (20:45 +0000)]
Localisation updates from translatewiki.net.
Change-Id: I1b06080eae889aa69b27c0500618f6b2e2e92935
jenkins-bot [Tue, 29 Jan 2013 20:30:19 +0000 (20:30 +0000)]
Merge "Dump unit tests no longer fail if gzip is not available"
umherirrender [Tue, 29 Jan 2013 20:00:33 +0000 (21:00 +0100)]
fix hardcoded quote in Special:DoubleRedirects/BrokenRedirects
Also remove the extra parentheses, will be added by Database::makeList
already.
Change-Id: I38efac1af8a4fb1e52d7716a9fe3440510705676
jenkins-bot [Tue, 29 Jan 2013 18:33:41 +0000 (18:33 +0000)]
Merge "[ExternalStore] Refactored external store classes to use a base class."
daniel [Tue, 29 Jan 2013 16:02:19 +0000 (17:02 +0100)]
Make HttpError set actual HTTP error code.
Previsouly, HttpError would set a Status header with the desired code,
but would not change the actual HTTP/1.1 header to include that code.
Change-Id: I2f68b1fa410b3619c5be3e82b64f99df97b9415a
Antoine Musso [Tue, 29 Jan 2013 15:32:13 +0000 (16:32 +0100)]
.gitignore Composer related files
The Composer dependencie manager installs components under /vendor by
default so simply ignore that path. We do not care of tracking the
composer.* files, they will always be local just like LocalSettings.php.
Extensions are properly installed under /extensions/.
Change-Id: I7c50ee11edf2f7b1d71533fc32a75831a384a630
Abhishek Das [Mon, 28 Jan 2013 18:17:13 +0000 (23:47 +0530)]
(bug 44160) Fix invalid link of `others` during installation
On the `Environmental Checks` page during MW installation, the link to
`others` in Credits was invalid because it points to a local special
page and the wiki is not even installed.
Changed the link to
`http://www.mediawiki.org/wiki/Special:Version/Credits` which is
always available during installation.
Change-Id: I3967e14303f9db7def39c97982f06e6086bb69b8
jenkins-bot [Tue, 29 Jan 2013 10:41:11 +0000 (10:41 +0000)]
Merge "test: helper to skip tests depending on 'gzip'"
btongminh [Tue, 1 Jan 2013 14:01:03 +0000 (15:01 +0100)]
Dump unit tests no longer fail if gzip is not available
Change-Id: Id1890984124028cb44960977c18572f1f6fded4c
jenkins-bot [Tue, 29 Jan 2013 10:08:02 +0000 (10:08 +0000)]
Merge "raise PHPUnit default timeouts"
raymond [Tue, 29 Jan 2013 09:58:06 +0000 (10:58 +0100)]
Sprinkle <code> over some strings for consistency
Change-Id: Iaa2c89d6a49bc6712230105f08f4a3f5837d0b97
Antoine Musso [Mon, 28 Jan 2013 15:09:17 +0000 (16:09 +0100)]
test: helper to skip tests depending on 'gzip'
Some of our tests explicitly depends on the 'gzip' command line utility,
for example the Dumps test suite. This patch adds up a simple helper
MediaWikiTestCase::checkHasGzip() which skips tests whenever gzip is
missing.
Change-Id: I5ded9a53d08dcf5f35e666f91e3f64e6e111af32
Antoine Musso [Tue, 29 Jan 2013 09:49:13 +0000 (10:49 +0100)]
raise PHPUnit default timeouts
default .. 2s -> 10s
medium ... 10s -> 30s
I originally thought that using PHPUnit timeout system was a good idea
but that is causing more harm than being helpful. Now default to ten
seconds.
Change-Id: If10a9b6df967130838a253d986b2ed623d8e3b0a
Antoine Musso [Tue, 29 Jan 2013 08:38:17 +0000 (09:38 +0100)]
api: remove duplicate __contruct calls
For historical reasons, all our API class had a dummy __construct which
simply calls their parent constructor. This patch removes all such
occurences to save out some bytes.
Change-Id: I667955d7821f780fc5ce23823d74dedb1729b9fa
Aaron Schulz [Thu, 24 Jan 2013 03:20:57 +0000 (19:20 -0800)]
[FileRepo] Lazy load large metadata from the DB.
* Previously, large values that could not fit into memcached would not be cached
and the master DB would be hit for any file loading (djvu files hit this often).
Change-Id: I3ed8ad4a85d6e3084330b56c3b48ee76103bd2b8
jenkins-bot [Mon, 28 Jan 2013 23:47:45 +0000 (23:47 +0000)]
Merge "pass codesniffer on tests/"
Translation updater bot [Mon, 28 Jan 2013 21:38:07 +0000 (21:38 +0000)]
Localisation updates from translatewiki.net.
Change-Id: I3713319f9382705bf987d9cfde257cd47663ac9d
Translation updater bot [Mon, 28 Jan 2013 20:07:26 +0000 (20:07 +0000)]
Localisation updates from translatewiki.net.
Change-Id: I8c8f7294dfb955e61844bf740110efcd5b611484
Demon [Mon, 28 Jan 2013 19:10:47 +0000 (19:10 +0000)]
Merge "Improved handling of pending queue delisting."
jenkins-bot [Mon, 28 Jan 2013 19:04:59 +0000 (19:04 +0000)]
Merge "[FileRepo] Use getHandler() is some places that should use it."
Aaron Schulz [Fri, 25 Jan 2013 20:19:57 +0000 (12:19 -0800)]
[LockManager] Refactoring to allow proper cross-wiki support.
Change-Id: I331d011a6fa4edd434f0fb547d325ad60901119d
jenkins-bot [Mon, 28 Jan 2013 18:39:13 +0000 (18:39 +0000)]
Merge "(Bug 44415) Drops possessive from watchlist header"
jenkins-bot [Mon, 28 Jan 2013 18:27:43 +0000 (18:27 +0000)]
Merge "[FileRepo] Lowered negative caching duration."
jenkins-bot [Mon, 28 Jan 2013 18:17:02 +0000 (18:17 +0000)]
Merge "(bug 44044) Check for existence of the timeout script in ulimit5.sh"
jenkins-bot [Mon, 28 Jan 2013 18:15:10 +0000 (18:15 +0000)]
Merge "(bug 41330) Default to the current year in the history page filter form"
Demon [Mon, 28 Jan 2013 18:11:50 +0000 (18:11 +0000)]
Merge "(bug 36537) Rename calls to wfArrayToCGI to wfArrayToCgi"
Alex Monk [Mon, 28 Jan 2013 18:04:20 +0000 (18:04 +0000)]
(bug 36537) Rename calls to wfArrayToCGI to wfArrayToCgi
Done with this command:
grep wfArrayToCGI * -R -l -Z | xargs -0 -l sed -i -e 's/wfArrayToCGI/wfArrayToCgi/g' && git checkout -- HISTORY
Change-Id: If7f4d4bfc199289c11c43cf519c2415a1aad1c51
jenkins-bot [Mon, 28 Jan 2013 18:00:27 +0000 (18:00 +0000)]
Merge "[FileBackend] Added duplicate backend check."
Aaron Schulz [Fri, 25 Jan 2013 19:47:06 +0000 (11:47 -0800)]
[FileRepo] Use getHandler() is some places that should use it.
Change-Id: I1b4b9786217b819c739f04e8bcead5c5774671a0
Aaron Schulz [Thu, 24 Jan 2013 21:31:40 +0000 (13:31 -0800)]
[FileRepo] Lowered negative caching duration.
Change-Id: I288ce2eef3cf547e254843c7f806925ee44391ca
jenkins-bot [Mon, 28 Jan 2013 17:11:13 +0000 (17:11 +0000)]
Merge "(bug 41476) Implement Language::isKnownLanguageTag()"
Siebrand Mazeland [Mon, 28 Jan 2013 15:46:03 +0000 (16:46 +0100)]
Localisation updates from translatewiki.net.
Updates for namespaces.
Change-Id: I77bd20a912976178501e97f7eab6eaabfb4bf86a
Siebrand Mazeland [Mon, 28 Jan 2013 14:35:32 +0000 (15:35 +0100)]
Localisation updates from translatewiki.net.
Updates for magic words.
Change-Id: Id095f8a9241e22db583016b7d5af74b3f6c2a6ba
Siebrand Mazeland [Mon, 28 Jan 2013 13:58:47 +0000 (14:58 +0100)]
Use tabs to indent lines
Change-Id: I0afd5b2ebcbdd0ced48a08e1861e3a968e847121
Siebrand Mazeland [Mon, 28 Jan 2013 13:56:30 +0000 (13:56 +0000)]
Merge "Localisation updates from translatewiki.net."
Siebrand Mazeland [Mon, 28 Jan 2013 13:50:35 +0000 (14:50 +0100)]
Localisation updates from translatewiki.net.
Updates for special page aliases.
Change-Id: Id1400249980400e0007eea3c5fb3e511aeb22878
nullspoon [Tue, 7 Aug 2012 22:06:12 +0000 (16:06 -0600)]
Whitelisting publicly readable title with regex
This patch make it possible to whitelist pages which anonymous users may
see. It is similar to $wgWhitelistRead expect it uses regular
expressions, the list of regex are to be added in the new global array
$wgWhitelistReadRegexp.
This would be useful in a semi-public team wiki situation where the
admin would want to hide an entire namespace from everyone except those
in a particular group due to sensitive team specific information.
Added new unit test testUserCan in includes/TitleTest.php to
test this new functionality.
* adds $wgWhitelistReadRegexp to DefaultSettings.php
* updates RELEASE-NOTES-1.21 new features
* updates CREDITS
Signed-off-by: Antoine Musso <hashar@free.fr>
Change-Id: I83f6a614874c3d289ff4bd8d015f1d9c92e500b6
jenkins-bot [Mon, 28 Jan 2013 11:44:08 +0000 (11:44 +0000)]
Merge "rename vars in SkinTemplate::outputPage()"
Antoine Musso [Mon, 28 Jan 2013 11:33:22 +0000 (12:33 +0100)]
raise timeout for CdbTest::testCdb()
CdbTest::testCdb() does some I/O which might timeout form time to time
on the continuous integration server. Mark the test has being in the
medium group, thus raising it from 2 seconds to 10 seconds.
Change-Id: I4a8d7f443ab0ebf47d79f25e1c33832e6e501c51
Amir E. Aharoni [Wed, 25 Jul 2012 09:23:26 +0000 (12:23 +0300)]
rename vars in SkinTemplate::outputPage()
The $tmp, $l names are not very meaningfull. This patch rename some
variables and avoid calling methods by adding some more variables.
Overall this cleanup the code to be more readable.
Change-Id: I4d2018c6cf3f651647bcb9e235b8322943bd5728
Gerrit Code Review [Mon, 28 Jan 2013 11:24:17 +0000 (11:24 +0000)]
Merge "testPngNativetZtxt requires zlib extension"
Antoine Musso [Mon, 14 Jan 2013 21:06:57 +0000 (22:06 +0100)]
test: some Revision tests depends on PHP zlib ext
Use an helper to verify whether 'zlib' is available, else will happilly
skip the test.
Change-Id: I43f8b20a95286b5495799d54b415f6d15894a335