Commit graph

41909 commits

Author SHA1 Message Date
Aaron Schulz
01ce4e032c [FileBackend] Use LRU for stat/sha1 cache.
Change-Id: I0a61720357aacb42a362c6666ba7f806d6cc14cf
2012-04-06 13:16:23 -07:00
Asier Lostalé
2f1a5977a2 generateSitemap can now optionally skip redirects
Slightly enhanced on commit.

Patchset2:
 - get ride of unneeded arguments passed to addOption()
 - rename $redirects to $skippedRedirects. Easier to search.
 - easier to read conditional test of page_is_redirect

Change-Id: I4ae528a584c5a9d73b615a6281d75b14d056e5e7
2012-04-06 13:04:03 -07:00
Brion VIBBER
985b296ae0 Merge "Correcting type of DatabaseSqlite::insertId()" 2012-04-06 19:57:31 +00:00
Aaron Schulz
5d585a423f [FileRepo] Added some cache code based on the problems in r97512.
* Made RepoGroup avoid caching files with large metadata and also reduced max cache size to 500 to avoid OOMs.
* Factored out a pingCache() function in RepoGroup.

Change-Id: I52f6413b9eb8b11fbffbde0f0e7acf97c7a2ff89
2012-04-06 12:39:58 -07:00
Christian Aistleitner
02c05b9d0e Correcting type of DatabaseSqlite::insertId()
Change-Id: I37ebe291cf8c4fd66a1ee236fcfa063016efbc8d
2012-04-06 21:02:27 +02:00
Brion VIBBER
4feb922b88 Merge "(bug 35751) Fix git revision links on Special:Version" 2012-04-06 18:52:40 +00:00
Catrope
e49bd7b5cc Merge "Revert "[LanguageConverter] Added some cache code based on the problems in r97512."" 2012-04-06 18:43:03 +00:00
Brion VIBBER
9994758337 Revert "[LanguageConverter] Added some cache code based on the problems in r97512."
This reverts commit 3b8dbbd502 -- merged prematurely, needs add'l discussion
2012-04-06 18:41:27 +00:00
Brion VIBBER
6b168b55a3 Merge "[LanguageConverter] Added some cache code based on the problems in r97512." 2012-04-06 18:39:48 +00:00
Catrope
edde0a423b Remove duplicate URLs in SquidUpdate.php
This has to be done in 3 places, because there are 3 public entry
points.

I originally submitted this to fight duplicates I thought I was seeing
in production, but it turns out I'm blind and the URLs weren't
duplicates after all. Nevertheless, preventing duplicate purges in the
SquidUpdate class is a good idea.

Change-Id: Idc21dd7d0b3b79572853b787fac746454d9178ea
2012-04-06 11:26:46 -07:00
Aaron Schulz
3b8dbbd502 [LanguageConverter] Added some cache code based on the problems in r97512.
* Added $wgLanguageConverterCacheType global to control LC cache type. We can use it to enable direct apc use for language converter (to match the live hack).

Change-Id: I04616469aa53ccd1a5ce51af50a18acca5bb8bc4
2012-04-06 11:01:47 -07:00
Brion VIBBER
e77cd32bf3 Merge "Make SITENAME with value mw.config.get( 'wgSiteName' ) available in parser without the need of module users explicitly adding it." 2012-04-06 17:46:51 +00:00
Reedy
a521673dc2 Merge "tests related to API block action and its gettoken" 2012-04-06 15:38:25 +00:00
Translation updater bot
b3664209bd Translation updates from translatewiki.net
Change-Id: If4567389637d89aa8266e5b3c0fc05a7c718797f
2012-04-06 15:34:29 +00:00
Hashar
91a4a0484e Merge "(bug 35749) Update checkSyntax.php to use Git" 2012-04-06 15:07:34 +00:00
Hashar
2b0352f291 Merge "(bug 23006) create #speciale parser function" 2012-04-06 14:23:42 +00:00
grunny
08165793fc (bug 35751) Fix git revision links on Special:Version
When .git isn't used in the clone URL, links currently break

Change-Id: Ia69e1bfea91ef50c126896b374a083447db4481f
2012-04-06 23:56:26 +10:00
Siebrand Mazeland
8e9bf4d26f Fix grammar issues in recently added messages.
Yay for review...

Change-Id: I7473adbf7d15e5ecb8133e822e9d995bee4257aa
2012-04-06 12:54:02 +02:00
Hashar
7e51419df6 Merge "Gender namespaces for Serbian (sr)" 2012-04-06 10:45:58 +00:00
Niklas Laxström
4ea783bca6 Gender namespaces for Serbian (sr)
Submitted by user Rancher at
http://translatewiki.net/wiki/Thread:Support/GENDER_in_namespaces

Change-Id: I6795cd04057cc80ac30091acbc7e6a2b81072f31
2012-04-06 10:17:41 +00:00
Niklas Laxström
74281ebe46 Partial revert of I80a4784 for mk
This change was vetoed:
http://translatewiki.net/wiki/Thread:User_talk:GerardM/Your_mesage_at_mk.wikipedia

Change-Id: If279d218720063a2d96229baa17d5240699f90ec
2012-04-06 09:57:25 +00:00
umherirrender
bf2a9989b2 (bug 23006) create #speciale parser function
Also add explicit Title::getPrefixedText() in
CoreParserFunctions::special, so that method does not rely on
Title::toString.

Change-Id: I1d041b11386bff15811e19de47a662e5ed7a2b07
2012-04-06 09:14:47 +02:00
Hashar
4e5c073563 Merge "[FileRepo] Various code cleanups." 2012-04-06 06:45:16 +00:00
Hashar
e41c77eda7 Merge "Un-marking testMakeNormalBlock as broken..." 2012-04-06 06:42:07 +00:00
Kevin Israel
2fc34e30f4 (bug 35749) Update checkSyntax.php to use Git
checkSyntax.php now uses git commands to retrieve a list of modified
files instead of the svn command-line client.

The script now considers any files that have been changed since
the nearest common ancestor to the master branch to be "modified",
as it is probably desirable to include files modified in previous
commits on the same local topic branch that have not yet made it
into master.

Change-Id: I0d4a02d4591242a9fd45291f5c4230c535e861b3
2012-04-06 00:36:39 -04:00
Santhosh Thottingal
91bc48e832 Make SITENAME with value mw.config.get( 'wgSiteName' ) available in parser without the need of module users explicitly adding it.
- Refer Bug 33658
- Merging the jsgrammar branch of svn.

Change-Id: Iacdf02122f396ac90678241775eb8e079ff6369a
2012-04-06 09:49:54 +05:30
Brion VIBBER
3bd5107de9 Merge ""Show Changes" on default messages shows now diff against default message text" 2012-04-05 23:02:18 +00:00
Aaron Schulz
eea7bf3f66 Merge "Show Log toolbox link for anon users, fix toolbox on DeletedContribs" 2012-04-05 22:33:09 +00:00
Aaron Schulz
80a7c887ff Merge "Use local context to get messages" 2012-04-05 22:20:01 +00:00
Hashar
245ae1340f Merge "code style tweaks" 2012-04-05 21:21:35 +00:00
umherirrender
0dba8923e9 "Show Changes" on default messages shows now diff against default
message text

This is useful, because the textbox is already preloaded with the
default message text and than it is nice to get the diff against that
text.

Change-Id: Icbfb0090c32ea09e34ec3ccba26863189854f8a6
2012-04-05 21:58:00 +02:00
Aaron Schulz
c8e1463cc0 [FileRepo] Various code cleanups.
* Made File::isHashed() wrap FileRepo::getHashLevels(). Removed now-used FileRepo::isHashed().
* Removed FileRepo::simpleClean(). Not useful anymore since the paths in Status errors don't have $IP or upload dirs anymore.
* Removed code in FileRepo::fileExistsBatch() and FileRepo::cleanupBatch() to handle FS file paths, which should never be passed in anymore. Likewise, removed FILES_ONLY parameter.
* Removed FileRepo::append()/appendFinish() stub functions.
* Added FileRepo::assertWritableRepo() function to better handle repos that are read-only by design rather than the hack of overwriting each function (several were missed).
* Added FileBackend::isPathTraversalFree() function and used it in FileRepo::validateFilename() to avoid duplication.
* Tweaked FileRepo::freeTemp() to avoid file locking and made FileRepo::cleanupBatch() return a Status.
* Moved FileRepo::cleanupDeletedBatch() near FileRepo::deleteBatch().
* Added type hinting to a few places.
* Tweaked some misleading doc comments and added function visibility markers.

Change 1:
* Simplified NullRepo to also use assertWritableRepo(). It is currently only used by a single unit test.

Change-Id: I1cd0f4971011772e38e5156f94ffc50325372f28
2012-04-05 12:48:47 -07:00
Alexandre Emsenhuber
a4039c6a3b Use local context to get messages
Change-Id: I73e0d08f684c67ec5257953eadfda3acdfa4e71f
2012-04-05 21:40:54 +02:00
Alexandre Emsenhuber
3f6312b1da Fix for I5b02aa914916f64492c85ce6dcc3272b6406551a (r4335) add parentheses arround git revision hashes.
Per Reedy, for consistency with the MediaWiki item at the top of the page and revision numbers in SVN; arround parentheses arround git hashes of extensions in Special:Version.

Change-Id: I59573ffcdd9f245a12b85ba70182cef5ed3a277e
2012-04-05 21:03:11 +02:00
Aaron Schulz
bef83c10b9 Merge "Making https svnroot point to https viewvc, not https viewvc to https viewvc, as that wouldn't replace anything" 2012-04-05 19:00:04 +00:00
Aaron Schulz
e101dede01 Merge "Duplicate array keys aren't going to do very much..." 2012-04-05 18:48:17 +00:00
Reedy
2bfd84eb8c Duplicate array keys aren't going to do very much...
Change-Id: I3421f70332f9514e71d4c1f0751be567108c1099
2012-04-05 19:35:09 +01:00
Brion VIBBER
179704bb20 Merge "(bug 27757) API method for retrieving tokens" 2012-04-05 18:34:50 +00:00
Brion VIBBER
615c0c7d50 Merge "Add passing test documenting MW's acceptance of pipes between tr attributes" 2012-04-05 18:30:18 +00:00
Reedy
ee61fdd07a Making https svnroot point to https viewvc, not https viewvc to https viewvc, as that wouldn't replace anything
Change-Id: Ibd7fe17e82c222c97010e468cec09ddc9aab0120
2012-04-05 19:30:17 +01:00
jeroendedauw
190952379e code style tweaks
Change-Id: I992459cd740678d0eb0b2dd70de6c092d7dba67e
2012-04-05 20:29:30 +02:00
Brion VIBBER
5fd5704436 Merge "Renamed "wfShellMaintenanceCmd" function and new, unused, het-deploy, hook to "wfShellWikiCmd". The old function now remains as a wrapper. The term "maintenance" is too restrictive." 2012-04-05 18:22:05 +00:00
Brion VIBBER
9afc1eff1c Merge "(bug 35728) Git revisions are now linked on Special:Version" 2012-04-05 18:08:12 +00:00
Alexandre Emsenhuber
1f61fb0d65 Fix error from I55939bb5295e73594c3fdf7287dddbc16a233ce4 (r4099) pointed out by Nikerabbit
The error is "PHP Strict Standards:  Creating default object from empty value in includes/User.php on line 2142"; the problem was that I forgot to renamed an instance of that variable while refactoring the code.

Change-Id: I4e32311693708ec5a0227d60f7818b374fccd4cc
2012-04-05 20:02:59 +02:00
Alexandre Emsenhuber
5734eac351 (bug 35728) Git revisions are now linked on Special:Version
Change-Id: I5b02aa914916f64492c85ce6dcc3272b6406551a
2012-04-05 18:22:48 +02:00
Alexandre Emsenhuber
9decb76ae3 (bug 35649) Special:Version now shows hashes of extensions checked out from git
Change-Id: I0d9540dbc103ba678dd2fb5e11c656e238e31f18
2012-04-05 17:13:42 +02:00
Gabriel Wicke
792792b68a Add passing test documenting MW's acceptance of pipes between tr attributes
Change-Id: I584a8826348a9acc4facfaadf5766832d262a53d
2012-04-05 15:52:05 +02:00
Hashar
7727f66332 Merge "Remove some duplicate code in ProfilerSimpleTrace" 2012-04-05 08:24:32 +00:00
Aaron Schulz
770c9d8c2e Renamed "wfShellMaintenanceCmd" function and new, unused, het-deploy, hook
to "wfShellWikiCmd". The old function now remains as a wrapper. The term "maintenance" is too restrictive.

Change-Id: I5c23d6475fd1aca374ee57b89212eee3a0d8cea1
2012-04-04 16:48:55 -07:00
Brion VIBBER
cb9c695a18 Merge "increase qunit coverage of mediawiki.html and mediawiki.util" 2012-04-04 21:04:55 +00:00