lhc/web/wiklou.git
10 years agoMerge "Fixed some @params documentation (includes/*)"
jenkins-bot [Tue, 22 Apr 2014 10:05:49 +0000 (10:05 +0000)]
Merge "Fixed some @params documentation (includes/*)"

10 years agoMerge "Fixed some @params documentation (includes/*)"
jenkins-bot [Tue, 22 Apr 2014 09:57:32 +0000 (09:57 +0000)]
Merge "Fixed some @params documentation (includes/*)"

10 years agoMerge "Fixed some @params documentation (includes/parser)"
jenkins-bot [Tue, 22 Apr 2014 09:43:43 +0000 (09:43 +0000)]
Merge "Fixed some @params documentation (includes/parser)"

10 years agoMerge "Remove useless comments from search output"
jenkins-bot [Tue, 22 Apr 2014 09:13:52 +0000 (09:13 +0000)]
Merge "Remove useless comments from search output"

10 years agoMake languages/ pass phpcs-strict
Siebrand Mazeland [Mon, 21 Apr 2014 18:44:54 +0000 (20:44 +0200)]
Make languages/ pass phpcs-strict

Change-Id: I0c4a68d140fae27857cbc3684fe51d7880d92118

10 years agoRemove useless comments from search output
Chad Horohoe [Tue, 22 Apr 2014 08:52:11 +0000 (01:52 -0700)]
Remove useless comments from search output

They show up when results are broken, but it's better to skip
the broken result entirely and not put in a pointless comment.

Change-Id: I691b04f31e2e439f9481c954f177e21b7f80ca2c

10 years agoMerge "Remove 4 unused live preview messages"
jenkins-bot [Tue, 22 Apr 2014 08:51:19 +0000 (08:51 +0000)]
Merge "Remove 4 unused live preview messages"

10 years agoMerge "generateJsonI18n.php: Use tabs for indentation"
jenkins-bot [Tue, 22 Apr 2014 08:16:55 +0000 (08:16 +0000)]
Merge "generateJsonI18n.php: Use tabs for indentation"

10 years agoMerge "Remove 3 unused upload related error messages"
jenkins-bot [Tue, 22 Apr 2014 07:55:48 +0000 (07:55 +0000)]
Merge "Remove 3 unused upload related error messages"

10 years agoMerge "Remove unused message 'dberr-header'"
jenkins-bot [Tue, 22 Apr 2014 07:52:46 +0000 (07:52 +0000)]
Merge "Remove unused message 'dberr-header'"

10 years agoMerge "Remove unused message 'notacceptable'"
jenkins-bot [Tue, 22 Apr 2014 07:47:58 +0000 (07:47 +0000)]
Merge "Remove unused message 'notacceptable'"

10 years agoFixed slow query in LocalFileDeleteBatch::getHashes()
Aaron Schulz [Tue, 22 Apr 2014 05:58:36 +0000 (22:58 -0700)]
Fixed slow query in LocalFileDeleteBatch::getHashes()

* All the old files will have the oi_name of the $file

bug: 62360
Change-Id: Ie3aeee44a7ec1ef4cad0c0fcde9b7d0dba003da2

10 years agoRemove unnecessary h2 element on create account
swalling [Mon, 21 Apr 2014 23:00:08 +0000 (16:00 -0700)]
Remove unnecessary h2 element on create account

We added these headings during the last account creation and login form
redesign but on recollection I'm not sure they're needed.

The messages are pretty much redundant with the h1 heading,
and now h2 elements have a margin-top of 1em it adds too much whitespace.

Change-Id: Ice5e8bf23cc00bf00835e7dc26acc33182654ec5

10 years agoMerge "Remove 2 unused search related messages"
jenkins-bot [Tue, 22 Apr 2014 03:28:19 +0000 (03:28 +0000)]
Merge "Remove 2 unused search related messages"

10 years agoRemove 3 unused upload related error messages
Kevin Israel [Mon, 21 Apr 2014 22:39:53 +0000 (18:39 -0400)]
Remove 3 unused upload related error messages

Follows-up r106752 (5275f9b097cd):
* fileappenderrorread
* fileappenderror
* fileexistserror

Change-Id: I0b953827ca617ca123e1018d3e38c4df7b22a117

10 years agoRemove unused message 'notacceptable'
Kevin Israel [Tue, 22 Apr 2014 01:08:02 +0000 (21:08 -0400)]
Remove unused message 'notacceptable'

Follows-up 4ebd4debf407.

Change-Id: I887041bad0be4f0fe6167f35c6c55e72610e2aa8

10 years agoRemove 2 unused search related messages
Kevin Israel [Mon, 21 Apr 2014 23:33:44 +0000 (19:33 -0400)]
Remove 2 unused search related messages

Follows-up 7e8c48ac3d11 by removing 'powersearch-redir'.
Follows-up 11c04f9ecbaf by removing 'prefs-displaysearchoptions'.

Change-Id: I13ce4eb1f9431e23f983ec737a684213d1dcd235

10 years agoRemove unused message 'dberr-header'
Kevin Israel [Mon, 21 Apr 2014 22:25:15 +0000 (18:25 -0400)]
Remove unused message 'dberr-header'

Follows-up 2bcffe8be420.

Change-Id: I55178414ebfec9cb6e7c0f97e3889637074556d7

10 years agoFixed some @params documentation (includes/parser)
umherirrender [Mon, 21 Apr 2014 23:38:39 +0000 (01:38 +0200)]
Fixed some @params documentation (includes/parser)

Swapped some "$var type" to "type $var" or added missing types
before the $var. Changed some other types to match the more common
spelling. Makes beginning of some text in captial.
Also added some missing @param.

Change-Id: I49f8f48b521878de7abd9cc40efdeff6cf9a37e0

10 years agoRemove 4 unused live preview messages
Kevin Israel [Mon, 9 Dec 2013 01:14:33 +0000 (20:14 -0500)]
Remove 4 unused live preview messages

Most of these are obsolete because there is no longer a separate
"Live preview" button on the edit form.

* showlivepreview
* livepreview-ready
* livepreview-failed
* livepreview-error

SemanticMediaWiki uses 'livepreview-loading', so I left that message
in for now.

Change-Id: I51d014eb2c3dcf5ff1b91a00d5dc3e5b0c580459

10 years agogenerateJsonI18n.php: Use tabs for indentation
Kevin Israel [Mon, 21 Apr 2014 20:54:31 +0000 (16:54 -0400)]
generateJsonI18n.php: Use tabs for indentation

Bug: 63444
Change-Id: Iaaf6b1a08c316f29c18fd5c9494decee401a43f1

10 years agoMerge "Expand the protocol for proto-relative links when printing"
jenkins-bot [Mon, 21 Apr 2014 20:47:28 +0000 (20:47 +0000)]
Merge "Expand the protocol for proto-relative links when printing"

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 21 Apr 2014 20:11:44 +0000 (20:11 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I8a1715baff4ddbc098e202232db3b1c87d01ccef

10 years agoExpand the protocol for proto-relative links when printing
Bartosz Dziewoński [Fri, 18 Apr 2014 19:48:02 +0000 (21:48 +0200)]
Expand the protocol for proto-relative links when printing

Things like "User's Guide (//meta.wikimedia.org/wiki/Help:Contents)"
(on the default main page) don't look like the expected behavior to
me, and I think regular users expect links to start with either "www"
or "http".

Let's assume HTTPS for these and prepend the protocol to the URL.

Change-Id: If48f61de26a37eddbb134b824186706c08dabb72

10 years agoUpdate OOjs UI to v0.1.0-pre (d4baf57069)
James D. Forrester [Mon, 21 Apr 2014 19:42:09 +0000 (12:42 -0700)]
Update OOjs UI to v0.1.0-pre (d4baf57069)

New changes:
351db20 Localisation updates from https://translatewiki.net.
1a21253 Set up jsduck
d492a0f Revert "Add aggregate method"

Change-Id: Ida003c21a1f748f78ac0b36511d86e9dd3f8da58

10 years agoMerge "Lowered limit for wfThumbIsAttemptThrottled() to 4"
jenkins-bot [Mon, 21 Apr 2014 18:27:44 +0000 (18:27 +0000)]
Merge "Lowered limit for wfThumbIsAttemptThrottled() to 4"

10 years agoLowered limit for wfThumbIsAttemptThrottled() to 4
Aaron Schulz [Mon, 21 Apr 2014 18:19:52 +0000 (11:19 -0700)]
Lowered limit for wfThumbIsAttemptThrottled() to 4

Change-Id: I2d91647abdaff820eb87b0bd45505ffa1fbc25fe

10 years agoMerge "More Profiler class refactoring"
jenkins-bot [Mon, 21 Apr 2014 18:02:07 +0000 (18:02 +0000)]
Merge "More Profiler class refactoring"

10 years agoMerge "Update formatting for languages/utils/"
jenkins-bot [Mon, 21 Apr 2014 18:01:00 +0000 (18:01 +0000)]
Merge "Update formatting for languages/utils/"

10 years agoMerge "Remove underscore from classes CLDRPluralRule*"
jenkins-bot [Mon, 21 Apr 2014 18:00:42 +0000 (18:00 +0000)]
Merge "Remove underscore from classes CLDRPluralRule*"

10 years agoMerge "PostgreSQL: Improve speed for page edit in imports"
jenkins-bot [Mon, 21 Apr 2014 17:59:45 +0000 (17:59 +0000)]
Merge "PostgreSQL: Improve speed for page edit in imports"

10 years agoMore Profiler class refactoring
Aaron Schulz [Mon, 14 Apr 2014 20:30:58 +0000 (13:30 -0700)]
More Profiler class refactoring

* Factored a ProfilerStandard class out of Profiler
* Profiler is now an abstract base class
* For b/c, using Profiler as the profiler switches to ProfilerStub
  to avoid trying to instantiate an abstract class
* Also factored out a small TransactionProfiler class
* Fixed fatal in "new ProfilerStub()" line in getInstance();
  Profiler has long since type hinted $params as an array
* Removed bogus debug var usage left in ProfilerMwprof::getRawData()
* Removed useless mTimeMetric stuff

Change-Id: I854dabba6c8b1fb7d92baca59ebd4af25878d11d

10 years agoMerge "thumb.php and img_auth.php cleanups"
jenkins-bot [Mon, 21 Apr 2014 17:50:32 +0000 (17:50 +0000)]
Merge "thumb.php and img_auth.php cleanups"

10 years agoUpdate formatting for languages/utils/
Siebrand Mazeland [Mon, 21 Apr 2014 17:48:22 +0000 (19:48 +0200)]
Update formatting for languages/utils/

Change-Id: I54a19cff97067b71cb6531bc37802adb2d6c52ba

10 years agoRemove underscore from classes CLDRPluralRule*
Siebrand Mazeland [Mon, 21 Apr 2014 17:23:37 +0000 (19:23 +0200)]
Remove underscore from classes CLDRPluralRule*

Part of program to remove underscores from class names. Checked core and 675
extensions for occurrences. All uses are in core in core are updated in this
patch. There are no uses in Gerrit extensions.

Change-Id: Id3ff16710a11ce1909a83b58505b250736a073e8

10 years agoMerge "Make room for preloadFileStat() call in FileBackend::doOperationsInternal"
jenkins-bot [Mon, 21 Apr 2014 17:13:35 +0000 (17:13 +0000)]
Merge "Make room for preloadFileStat() call in FileBackend::doOperationsInternal"

10 years agoMerge "Bail out on FileBackend operations if the initial stat calls failed"
jenkins-bot [Mon, 21 Apr 2014 17:13:33 +0000 (17:13 +0000)]
Merge "Bail out on FileBackend operations if the initial stat calls failed"

10 years agoMerge "Update formatting of includes/title/"
jenkins-bot [Mon, 21 Apr 2014 17:11:39 +0000 (17:11 +0000)]
Merge "Update formatting of includes/title/"

10 years agoMerge "Avoid image table updates on file upload failure"
jenkins-bot [Mon, 21 Apr 2014 16:54:19 +0000 (16:54 +0000)]
Merge "Avoid image table updates on file upload failure"

10 years agoMerge "Call wfThumbIncrAttemptFailures() in thumb.php on fatals"
jenkins-bot [Mon, 21 Apr 2014 16:34:29 +0000 (16:34 +0000)]
Merge "Call wfThumbIncrAttemptFailures() in thumb.php on fatals"

10 years agoCall wfThumbIncrAttemptFailures() in thumb.php on fatals
Aaron Schulz [Mon, 21 Apr 2014 16:27:04 +0000 (09:27 -0700)]
Call wfThumbIncrAttemptFailures() in thumb.php on fatals

Change-Id: I3dbe07d12abdc265d377cd05bb87c837df156995

10 years agoMerge "Support tighter rate limiting for "non-standard" thumbnails"
jenkins-bot [Mon, 21 Apr 2014 16:21:04 +0000 (16:21 +0000)]
Merge "Support tighter rate limiting for "non-standard" thumbnails"

10 years agoUpdate formatting of includes/title/
Siebrand Mazeland [Mon, 21 Apr 2014 09:31:49 +0000 (11:31 +0200)]
Update formatting of includes/title/

Change-Id: I862dde47b569ca99f098d795e13b1999a33d790b

10 years agoMake includes/title pass phpcs-strict
Siebrand Mazeland [Mon, 21 Apr 2014 09:29:55 +0000 (11:29 +0200)]
Make includes/title pass phpcs-strict

Change-Id: Iac03d1f3d4ee622496b3cb0bf8086d2f362b52af

10 years agoPostgreSQL: Improve speed for page edit in imports
Jeff [Mon, 21 Apr 2014 04:31:07 +0000 (21:31 -0700)]
PostgreSQL: Improve speed for page edit in imports

Whenever a new revision is added, a deferred update gets enqueued.
When it is fired, it clears the searchable text from all earlier
revisions for the article.  This becomes very slow for articles
with long revision histories, as it re-clears the textvector even
when it has already been cleared by earlier actions.  This leads to
very high load in the database for runs of importDump.php

This patch improves this situation by adding a condition to the WHERE
clause such that it does not update rows in which the textvector
is already NULL.

PostgreSQL cannot automatically remove such degenerate updates
in general because the updated rows must be locked and have their
transaction markers increased.  However, in this particular case
those things are unimportant.

This change improves the performance of importDump.php on a
wiki with long revision histories by 7 fold, and moves the
major bottleneck from the database to PHP.  It might also
improve the performance of ordinary page edits, but that
was not tested.

There are more improvements that could be made here.  For example,
a partial index or expression index could make it so that already
cleared rows do not have to be visited at all.  Or the deferred
update mechanism could have a notion of "idempotency" so that many
indentical updates enqueued during bulk loading would be condensed
to only a single execution.  However, this change is very much
simpler and is sufficient to shift the bottleneck elsewhere.

Change-Id: I458603767c6a86425010d02ffc1f8079c4b3c9a0

10 years agothumb.php and img_auth.php cleanups
Aaron Schulz [Sun, 20 Apr 2014 23:52:08 +0000 (16:52 -0700)]
thumb.php and img_auth.php cleanups

* Specifically check isDeleted() instead of relying on the file
  being moved to the deleted zone alone.
* Made img_auth.php skip some unnecessary checks for public wikis.
  Also made it set the private cache control headers only if needed.

Change-Id: If82589acd53c02943d5f3bbafd29381fd63f8f68

10 years agoFixed some @params documentation (includes/*)
umherirrender [Sun, 20 Apr 2014 21:33:05 +0000 (23:33 +0200)]
Fixed some @params documentation (includes/*)

Swapped some "$var type" to "type $var" or added missing types
before the $var. Changed some other types to match the more common
spelling. Makes beginning of some text in captial.

Change-Id: Ifbb1da2a6278b0bde2a6f6ce2e7bd383ee3fb28a

10 years agoMerge "Deprecate ResourceLoaderGetStartupModules"
jenkins-bot [Sun, 20 Apr 2014 21:23:04 +0000 (21:23 +0000)]
Merge "Deprecate ResourceLoaderGetStartupModules"

10 years agoDeprecate ResourceLoaderGetStartupModules
Ori Livneh [Sun, 20 Apr 2014 21:01:21 +0000 (14:01 -0700)]
Deprecate ResourceLoaderGetStartupModules

In bug 63240, Roan calls it a 'misfeature', which I think is exactly right. It
has been used as a lazy workaround for having to think about load-order,
dependency management, and race conditions.

Bug: 63240
Change-Id: Ic48ad39c6d3d166d6bb8f60dfdd5f95aa7ed16a6

10 years agomediawiki.mixins.less: Correctly embed images in .background-image-svg
Bartosz Dziewoński [Thu, 17 Apr 2014 20:09:28 +0000 (22:09 +0200)]
mediawiki.mixins.less: Correctly embed images in .background-image-svg

Using the /* @embed */ annotation twice for the same property
(background-image) confuses the LESS compiler, resulting in one of the
images not being embedded.

Let's use the embeddable() and embed() MediaWiki LESS functions,
like in the .background-image mixin.

And let's extend and clean up the documentation while we're here.

Bug: 61941
Change-Id: I39ea2004b9db34d096eed08b3ffdfcaf8d5fcd7d

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 20 Apr 2014 19:49:13 +0000 (19:49 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I7816dbccd7d162fc934cf36ff7c23d3b12f0fa9b

10 years agoFixed some @params documentation (includes/*)
umherirrender [Sun, 20 Apr 2014 19:16:57 +0000 (21:16 +0200)]
Fixed some @params documentation (includes/*)

Swapped some "$var type" to "type $var" or added missing types
before the $var. Changed some other types to match the more common
spelling. Makes beginning of some text in captial.
Also added some missing @param.

Change-Id: I7f605aa9e117b5fd80d9b1440864fe526d2b14a5

10 years agoMerge "Allow additional interwiki prefixes on local interwiki links"
jenkins-bot [Sun, 20 Apr 2014 14:00:22 +0000 (14:00 +0000)]
Merge "Allow additional interwiki prefixes on local interwiki links"

10 years agoMerge "Fixed some @params documentation (includes/api)"
Addshore [Sun, 20 Apr 2014 13:32:27 +0000 (13:32 +0000)]
Merge "Fixed some @params documentation (includes/api)"

10 years agoMerge "Fixed some @params documentation (includes/[db|installer])"
Addshore [Sun, 20 Apr 2014 13:29:42 +0000 (13:29 +0000)]
Merge "Fixed some @params documentation (includes/[db|installer])"

10 years agoMerge "Fixed some @params documentation (includes/[file...|upload])"
Addshore [Sun, 20 Apr 2014 13:28:27 +0000 (13:28 +0000)]
Merge "Fixed some @params documentation (includes/[file...|upload])"

10 years agoMerge "Clarifying double-redirect messages"
jenkins-bot [Sun, 20 Apr 2014 12:24:50 +0000 (12:24 +0000)]
Merge "Clarifying double-redirect messages"

10 years agoClarifying double-redirect messages
Amir E. Aharoni [Sat, 19 Apr 2014 12:02:06 +0000 (15:02 +0300)]
Clarifying double-redirect messages

Change-Id: Ifbe13b4ed98d34ecbb6dc5b583422c2dc4ff307e

10 years agoMerge "jquery.suggestions: Handle CSS ellipsis when calculating suggestions' widths"
jenkins-bot [Sun, 20 Apr 2014 11:14:47 +0000 (11:14 +0000)]
Merge "jquery.suggestions: Handle CSS ellipsis when calculating suggestions' widths"

10 years agoMerge "Fixed some @params documentation (includes/*)"
Addshore [Sun, 20 Apr 2014 09:14:28 +0000 (09:14 +0000)]
Merge "Fixed some @params documentation (includes/*)"

10 years agoFixed some @params documentation (includes/*)
umherirrender [Sat, 19 Apr 2014 20:22:20 +0000 (22:22 +0200)]
Fixed some @params documentation (includes/*)

Swapped some "$var type" to "type $var" or added missing types
before the $var. Changed some other types to match the more common
spelling. Makes beginning of some text in captial.
Also added some missing @param.

Change-Id: Iced714bca004756b461b66067a49a925a7e3b877

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 19 Apr 2014 19:36:03 +0000 (19:36 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I58e3db9db609509bd6c4de229c13524bc262cc88

10 years agoFixed typo of encyclopedic in qqq.json
Kartik Mistry [Sat, 19 Apr 2014 16:13:58 +0000 (21:43 +0530)]
Fixed typo of encyclopedic in qqq.json

Change-Id: I78861c584d224e915c015172dbc1430749583753

10 years agoFixed some @params documentation (includes/[file...|upload])
umherirrender [Sat, 19 Apr 2014 15:19:17 +0000 (17:19 +0200)]
Fixed some @params documentation (includes/[file...|upload])

Swapped some "$var type" to "type $var" or added missing types
before the $var. Changed some other types to match the more common
spelling. Makes beginning of some text in captial.
Also added some missing @param.

Change-Id: I8804ebe0922d3a414863b162a2110e0b9e49b80f

10 years agoFixed some @params documentation (includes/[db|installer])
umherirrender [Sat, 19 Apr 2014 11:55:27 +0000 (13:55 +0200)]
Fixed some @params documentation (includes/[db|installer])

Swapped some "$var type" to "type $var" or added missing types
before the $var. Changed some other types to match the more common
spelling. Makes beginning of some text in captial.
Also added some missing @param.

Change-Id: I3595e9aac69ac42fbb74b0783fae0ad9bcc831aa

10 years agoMerge "Fixed some @params documentation (includes/[specialpage|specials])"
jenkins-bot [Sat, 19 Apr 2014 10:23:41 +0000 (10:23 +0000)]
Merge "Fixed some @params documentation (includes/[specialpage|specials])"

10 years agoFixed some @params documentation (includes/[specialpage|specials])
umherirrender [Sat, 19 Apr 2014 08:16:52 +0000 (10:16 +0200)]
Fixed some @params documentation (includes/[specialpage|specials])

Swapped some "$var type" to "type $var" or added missing types
before the $var. Changed some other types to match the more common
spelling. Makes beginning of some text in captial.
Also added some missing @param.

Change-Id: Icf6f36bb53322b39cd5c89523dbd0e4ab10b9ec9

10 years agodocs: closure -> Closure; callback -> callable
umherirrender [Sat, 19 Apr 2014 06:43:31 +0000 (08:43 +0200)]
docs: closure -> Closure; callback -> callable

Changed closure to capital word Closure in doc and type hint,
also changed callback in docs to callable

Change-Id: I52c8e8f13d38a837052101c38b9986be780ca057

10 years agoMerge "Purge removed OOjs UI files"
jenkins-bot [Sat, 19 Apr 2014 02:23:16 +0000 (02:23 +0000)]
Merge "Purge removed OOjs UI files"

10 years agoupdate-oojs-ui.sh: Replace target dir instead of adding file copies
Timo Tijhof [Sat, 19 Apr 2014 02:05:04 +0000 (04:05 +0200)]
update-oojs-ui.sh: Replace target dir instead of adding file copies

* A command like "cp dist/* $TARGET_DIR" does not remove files
  that were deleted in the release dist. Using rsync instead.

* Use bash -n or -z instead of "" and "x$VAR" == "x" tricks.

* The "git commit <dir>" doesn't properly take care of staging
  deletion of files removed by the update script, nor does it
  reliably (?) stage new files.
  Instead using a combination of "git add -u <dir>" (The -u
  stages deletion and modifcation of tracked files), and
  "git add <dir>" (stages modification and creation of files in
  that directory).

* Use "grunt test" instead of "grunt <default>" to make more
  explicit what is going on (no change in behaviour, default=test).
  And document why we don't use plain grunt-build without tests.

Change-Id: Id97a66df64d9e43e3c05388486b9f959108363c1

10 years agoPurge removed OOjs UI files
Timo Tijhof [Sat, 19 Apr 2014 02:07:30 +0000 (04:07 +0200)]
Purge removed OOjs UI files

The old update script didn't remove files in git if there were absent in
a newer version and left these behind.

Change-Id: I087657183c29ff7d9e2b636171961db62687b32f

10 years agooojs-update.sh: Replace target dir instead of adding file copies
Timo Tijhof [Sat, 19 Apr 2014 00:48:59 +0000 (02:48 +0200)]
oojs-update.sh: Replace target dir instead of adding file copies

* A command like "cp dist/* $TARGET_DIR" does not remove files
  that were deleted in the release dist. Using rsync instead.

  Though addition can happen, deletion should never happen as we
  refer to these files in Resources.php. But we also shouldn't
  leave behind old files mixed with new files, so delete them.
  Our structure unit tests for resources take care of catching
  references to files that don't (or no longer) exist.

* Use bash -n instead of != "".

* Refactor slightly to make it re-usable in other projects without
  too much modification (only REPO_DIR and TARGET_DIR need updating,
  the rest is generic now).

* The "git commit <dir>" doesn't properly take care of staging
  deletion of files removed by the update script, nor does it
  reliably (?) stage new files.
  Instead using a combination of "git add -u <dir>" (The -u
  stages deletion and modifcation of tracked files), and
  "git add <dir>" (stages modification and creation of files in
  that directory).

Change-Id: Ieb20978c887c5a141f31cab704b8d239f1572af0

10 years agoMake room for preloadFileStat() call in FileBackend::doOperationsInternal
Aaron Schulz [Sat, 19 Apr 2014 00:02:19 +0000 (17:02 -0700)]
Make room for preloadFileStat() call in FileBackend::doOperationsInternal

Change-Id: I60f71155abcf7f69423639b10ec301ac192df728

10 years agoMerge "Fixed some @params documentation (includes/[cache|objectcache])"
Addshore [Fri, 18 Apr 2014 23:54:17 +0000 (23:54 +0000)]
Merge "Fixed some @params documentation (includes/[cache|objectcache])"

10 years agoMerge "vector: Do styles the ResourceLoader way"
jenkins-bot [Fri, 18 Apr 2014 23:28:08 +0000 (23:28 +0000)]
Merge "vector: Do styles the ResourceLoader way"

10 years agoFixed some @params documentation (includes/[cache|objectcache])
umherirrender [Fri, 18 Apr 2014 23:19:46 +0000 (01:19 +0200)]
Fixed some @params documentation (includes/[cache|objectcache])

Swapped some "$var type" to "type $var" or added missing types
before the $var. Changed some other types to match the more common
spelling. Makes beginning of some text in captial.
Also added some missing @param.

Change-Id: I86fd10e3f2d4bb80e7432533038d124693acfb3c

10 years agoImproved HashRing usage in JobQueueFederated
Aaron Schulz [Tue, 8 Apr 2014 01:53:38 +0000 (18:53 -0700)]
Improved HashRing usage in JobQueueFederated

* Added proper ejection and caching in HashRing to avoid rebuilding
  the hash all the time (or doing manual caching).
* Made JobQueueFederated blacklist failing servers for a few seconds.
* Also made the JobQueueFederated root job methods properly respect
  the weights when they fail over.

Change-Id: Ifa4c03272c1777cfff2523ab21f780074ddcf359

10 years agoAdd forgotten OOjs UI i18n files
Roan Kattouw [Fri, 18 Apr 2014 20:12:54 +0000 (13:12 -0700)]
Add forgotten OOjs UI i18n files

Change-Id: I8387150a9caf09c16de2ad816ba5dcaa8b56af23

10 years agojquery.suggestions: Handle CSS ellipsis when calculating suggestions' widths
Bartosz Dziewoński [Fri, 18 Apr 2014 20:07:32 +0000 (22:07 +0200)]
jquery.suggestions: Handle CSS ellipsis when calculating suggestions' widths

This is so nasty :(

Bug: 64093
Change-Id: Ia6b1376dddf69a0faa214d5c9a756bdcd9658367

10 years agoUpdate OOjs UI to v0.1.0-pre (989950a4db)
Roan Kattouw [Fri, 18 Apr 2014 20:02:51 +0000 (13:02 -0700)]
Update OOjs UI to v0.1.0-pre (989950a4db)

New changes:
ff327f2 Localisation updates from https://translatewiki.net.
21bbbdb Add getCurrentItem method
ca0e453 Remove animation of grid layout inside booklets
b1c75fa Add aggregate method
df59f32 Add push/pop pending to Dialog
21c6d92 Make dialog overlays... overlaid?
989950a Localisation updates from https://translatewiki.net.

Change-Id: Iff681390616a2fa9ce5becf846365e7421f28433

10 years agoMerge "Remove # from dataProvider"
jenkins-bot [Fri, 18 Apr 2014 19:50:16 +0000 (19:50 +0000)]
Merge "Remove # from dataProvider"

10 years agoMerge "Remove superfluous # at end of line from languages.inc"
jenkins-bot [Fri, 18 Apr 2014 19:47:51 +0000 (19:47 +0000)]
Merge "Remove superfluous # at end of line from languages.inc"

10 years agoBail out on FileBackend operations if the initial stat calls failed
Aaron Schulz [Fri, 18 Apr 2014 18:34:39 +0000 (11:34 -0700)]
Bail out on FileBackend operations if the initial stat calls failed

* The preloadFileStat() call acts as a good canary for whether all
  affected servers are up. If anything failed in it, then it's not
  worth bothering to send the actual write requests.
* Also made FileBackend::preloadFileStat abstract while at it since
  the two subclasses implemented it and so should any others.
* Fixed a silly comment typo.

Change-Id: I5bd427f654aa4a9d6bfe4ed7566276e8ac520b30

10 years agoAvoid image table updates on file upload failure
Aaron Schulz [Fri, 18 Apr 2014 19:34:52 +0000 (12:34 -0700)]
Avoid image table updates on file upload failure

* If the publish() call did not really do anything, then there is
  no use in saving the page and file DB records. Previously the
  user would get an error but the description page would be made.

bug: 64071
Change-Id: I1959f8c1ef33dbd1b238f6020117d2862d4b0fd3

10 years agoMerge "Don't cache $wgResourceLoaderLESSVars in a static"
jenkins-bot [Fri, 18 Apr 2014 19:31:59 +0000 (19:31 +0000)]
Merge "Don't cache $wgResourceLoaderLESSVars in a static"

10 years agoMerge "WebInstallerOutput: Fix path to jquery.js"
Bartosz Dziewoński [Fri, 18 Apr 2014 19:29:52 +0000 (19:29 +0000)]
Merge "WebInstallerOutput: Fix path to jquery.js"

10 years agovector: Do styles the ResourceLoader way
Bartosz Dziewoński [Fri, 18 Apr 2014 14:15:01 +0000 (16:15 +0200)]
vector: Do styles the ResourceLoader way

It used to be done like this a few releases ago, but went
through some perturbation when the LESS rewrite happened
and afterwards during beta-testing the typography refresh.

The current way causes enough issues that I think the gain
from getting rid of it is worth losing some brevity.

Bug: 56592
Change-Id: Ibeff450fad789fbc67d95a1a9befd315f7405421

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 18 Apr 2014 19:17:26 +0000 (19:17 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I6945aedd9791855d4ed1cc62738d1b206d7b950e

10 years agoDon't cache $wgResourceLoaderLESSVars in a static
Ori Livneh [Fri, 18 Apr 2014 19:11:42 +0000 (12:11 -0700)]
Don't cache $wgResourceLoaderLESSVars in a static

Caching the value of $wgResourceLoaderLESSVars in a static variable that is
enclosed in a closure makes it harder to reset global state for test runs, and
it does so in the name of a performance benefit that is miniscule.

Change-Id: I0958b03818f56ab73c8c9124daa9e54cc59f2428

10 years agoMerge "Make HtmlFormatter return removed elements"
jenkins-bot [Fri, 18 Apr 2014 18:58:54 +0000 (18:58 +0000)]
Merge "Make HtmlFormatter return removed elements"

10 years agoMerge "Made runParallelBatches() fully set the status array on abort"
jenkins-bot [Fri, 18 Apr 2014 18:14:35 +0000 (18:14 +0000)]
Merge "Made runParallelBatches() fully set the status array on abort"

10 years agoMerge "mwjsduck-gen: Don't fail when running from different directory"
jenkins-bot [Fri, 18 Apr 2014 18:08:34 +0000 (18:08 +0000)]
Merge "mwjsduck-gen: Don't fail when running from different directory"

10 years agoMade runParallelBatches() fully set the status array on abort
Aaron Schulz [Fri, 18 Apr 2014 18:02:23 +0000 (11:02 -0700)]
Made runParallelBatches() fully set the status array on abort

Change-Id: Ie35b28b85e734db6910a42ed384374ba3d594a8e

10 years agoRemove # from dataProvider
umherirrender [Fri, 18 Apr 2014 17:10:38 +0000 (19:10 +0200)]
Remove # from dataProvider

Change-Id: Ie5414173b95e846d735827bffa34c73698e48c17

10 years agoRemove superfluous # at end of line from languages.inc
umherirrender [Fri, 18 Apr 2014 17:03:13 +0000 (19:03 +0200)]
Remove superfluous # at end of line from languages.inc

Change-Id: Ia625e8de5e4d04dd35b537fd905af53b66f4026b

10 years agoMerge "Remove 2 unused Special:Search hooks"
jenkins-bot [Fri, 18 Apr 2014 16:23:44 +0000 (16:23 +0000)]
Merge "Remove 2 unused Special:Search hooks"

10 years agoCleanup SpecialAllmessages.php according to conventions
Amir E. Aharoni [Fri, 18 Apr 2014 15:53:44 +0000 (18:53 +0300)]
Cleanup SpecialAllmessages.php according to conventions

Change-Id: I21a6d4359faf9d86ce3b01e423e8c3ab4c02658f

10 years agoWebInstallerOutput: Fix path to jquery.js
Bartosz Dziewoński [Fri, 18 Apr 2014 14:39:37 +0000 (16:39 +0200)]
WebInstallerOutput: Fix path to jquery.js

Follow-up to Id5ead145 and I335e4c08.

Bug: 64091
Change-Id: If40f479df7d68071d6ce5d2f3b8251e6bf3eb80e

10 years agoRemove 2 unused Special:Search hooks
Chad Horohoe [Wed, 16 Apr 2014 19:32:54 +0000 (12:32 -0700)]
Remove 2 unused Special:Search hooks

Nothing is listed on mw.org as using these and nothing in Git uses
them either. Less hooks is a good thing, we've still got 11 here :(

Change-Id: I2dd1dbb269820b192f8d9e9a496a161f4ef851bf

10 years agoMerge "Simplify SpecialVersion:listToText()"
jenkins-bot [Fri, 18 Apr 2014 14:48:09 +0000 (14:48 +0000)]
Merge "Simplify SpecialVersion:listToText()"