merged master
authordaniel <daniel.kinzler@wikimedia.de>
Wed, 20 Jun 2012 17:13:16 +0000 (19:13 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Wed, 20 Jun 2012 17:13:16 +0000 (19:13 +0200)
Change-Id: I6cf08c09c7d9b38ecce0b2bbed61431939edd7d4

15 files changed:
1  2 
docs/hooks.txt
includes/Article.php
includes/AutoLoader.php
includes/EditPage.php
includes/Export.php
includes/Revision.php
includes/Title.php
includes/WikiPage.php
includes/parser/Parser.php
languages/Language.php
languages/messages/MessagesQqq.php
maintenance/checkBadRedirects.php
tests/phpunit/maintenance/DumpTestCase.php
tests/phpunit/maintenance/backupPrefetchTest.php
tests/phpunit/maintenance/backupTextPassTest.php

diff --cc docs/hooks.txt
Simple merge
Simple merge
@@@ -279,20 -283,8 +283,21 @@@ $wgAutoloadLocalClasses = array
        'XmlTypeCheck' => 'includes/XmlTypeCheck.php',
        'ZhClient' => 'includes/ZhClient.php',
        'ZipDirectoryReader' => 'includes/ZipDirectoryReader.php',
+       'ZipDirectoryReaderError' => 'includes/ZipDirectoryReader.php',
  
 +      # content handler
 +      'Content' => 'includes/Content.php',
 +      'AbstractContent' => 'includes/Content.php',
 +      'ContentHandler' => 'includes/ContentHandler.php',
 +      'CssContent' => 'includes/Content.php',
 +      'CssContentHandler' => 'includes/ContentHandler.php',
 +      'JavaScriptContent' => 'includes/Content.php',
 +      'JavaScriptContentHandler' => 'includes/ContentHandler.php',
 +      'MessageContent' => 'includes/Content.php',
 +      'TextContent' => 'includes/Content.php',
 +      'WikitextContent' => 'includes/Content.php',
 +      'WikitextContentHandler' => 'includes/ContentHandler.php',
 +
        # includes/actions
        'CachedAction' => 'includes/actions/CachedAction.php',
        'CreditsAction' => 'includes/actions/CreditsAction.php',
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -295,11 -295,9 +295,13 @@@ abstract class DumpTestCase extends Med
         * @param $text_sha1 string: the base36 SHA-1 of the revision's text
         * @param $text string|false: (optional) The revision's string, or false to check for a
         *            revision stub
 +       * @param $model int: the expected content model id (default: CONTENT_MODEL_WIKITEXT)
 +       * @param $format int: the expected format model id (default: CONTENT_FORMAT_WIKITEXT)
+        * @param $parentid int|false: (optional) id of the parent revision
         */
-       protected function assertRevision( $id, $summary, $text_id, $text_bytes, $text_sha1, $text = false,
-                                                                               $model = CONTENT_MODEL_WIKITEXT, $format = CONTENT_FORMAT_WIKITEXT ) {
 -      protected function assertRevision( $id, $summary, $text_id, $text_bytes, $text_sha1, $text = false, $parentid = false ) {
++      protected function assertRevision( $id, $summary, $text_id, $text_bytes, $text_sha1, $text = false, 
++                                              $model = CONTENT_MODEL_WIKITEXT, $format = CONTENT_FORMAT_WIKITEXT,
++                                              $parentid = false ) {
  
                $this->assertNodeStart( "revision" );
                $this->skipWhitespace();
                        $this->assertNodeEnd( "text" );
                        $this->skipWhitespace();
                }
+               $this->assertNodeEnd( "revision" );
+               $this->skipWhitespace();
        }
- }
 -
+ }
@@@ -195,10 -197,8 +197,10 @@@ class BaseDumpTest extends MediaWikiTes
          <ip>127.0.0.1</ip>
        </contributor>
        <comment>BackupDumperTestP1Summary1</comment>
-       <text xml:space="preserve">BackupDumperTestP1Text1</text>
        <sha1>0bolhl6ol7i6x0e7yq91gxgaan39j87</sha1>
+       <text xml:space="preserve">BackupDumperTestP1Text1</text>
 +      <model name="wikitext">1</model>
 +      <format mime="text/x-wiki">1</format>
      </revision>
    </page>
  ';
          <ip>127.0.0.1</ip>
        </contributor>
        <comment>BackupDumperTestP2Summary1</comment>
-       <text xml:space="preserve">BackupDumperTestP2Text1</text>
        <sha1>jprywrymfhysqllua29tj3sc7z39dl2</sha1>
+       <text xml:space="preserve">BackupDumperTestP2Text1</text>
 +      <model name="wikitext">1</model>
 +      <format mime="text/x-wiki">1</format>
      </revision>
      <revision>
        <id>5</id>
          <ip>127.0.0.1</ip>
        </contributor>
        <comment>BackupDumperTestP2Summary4 extra</comment>
-       <text xml:space="preserve">BackupDumperTestP2Text4 some additional Text</text>
        <sha1>6o1ciaxa6pybnqprmungwofc4lv00wv</sha1>
+       <text xml:space="preserve">BackupDumperTestP2Text4 some additional Text</text>
 +      <model name="wikitext">1</model>
 +      <format mime="text/x-wiki">1</format>
      </revision>
    </page>
  ';
          <ip>127.0.0.1</ip>
        </contributor>
        <comment>Talk BackupDumperTestP1 Summary1</comment>
-       <text xml:space="preserve">Talk about BackupDumperTestP1 Text1</text>
        <sha1>nktofwzd0tl192k3zfepmlzxoax1lpe</sha1>
 +      <model name="wikitext">1</model>
 +      <format mime="text/x-wiki">1</format>
+       <text xml:space="preserve">Talk about BackupDumperTestP1 Text1</text>
      </revision>
    </page>
  ';