Commit graph

137 commits

Author SHA1 Message Date
awjrichards
c29fd59775 Big oops - merged to wrong branch.
Revert "Revert to arbitrarily old point before initial remote branch creation to help clean up"

This reverts commit ee0d3d330f
2012-06-05 22:58:54 +00:00
awjrichards
ee0d3d330f Revert to arbitrarily old point before initial remote branch creation to help clean up
Change-Id: I41a3d1e55d3ea9dffa42451237fe065f9334361d
2012-06-02 08:43:04 -07:00
Demon
1dc986a90f Merge "[FileRepo] Made getDescription() respect *_deleted fields." 2012-06-04 20:41:52 +00:00
umherirrender
ad6072fc63 Use new xsd schema 0.7 in Export.php
Change Idb82fe62 added a new xsd, but didn't use it.

Change-Id: I030d245715174daeaf24723ebc156ab36761a035
2012-06-03 21:05:21 +02:00
Aaron Schulz
bc789ee4e6 Merge "reverse text/sha1 output in export to match xsd" 2012-06-03 10:09:08 +00:00
umherirrender
6209ef4086 (bug 22750) <logitem> is at wrong location in export.xsd
* fix indent of logitem
* add logtitle/params tags
* change one Image: to File:

Change-Id: I02e631d8c4679c46095320901cdff724533d66f0
2012-06-01 17:57:02 +02:00
umherirrender
4e20a471ad reverse text/sha1 output in export to match xsd
Change-Id: I84588e3d9692ee9eb7411b1e391abfc6c9ee89bf
2012-05-31 21:05:40 +02:00
Aaron
9f6afeab0d [FileRepo] Made getDescription() respect *_deleted fields.
Change-Id: I1dd54611501d6747fb4ad6cbe6b58b0010b1d6d4
2012-05-25 16:00:49 -07:00
umherirrender
41988661e4 GROUP BY and ORDER BY supports arrays in Database class
Change-Id: Ib431b07ffa2ce6843e21536de2ff19c648e0a595
2012-05-13 00:06:48 +02:00
Antoine Musso
a8629e30ed (bug 36603) Make DumpFilter::$sink public again
This is required by dump unit testing for now. The change was introduced
by commit ab6e54e0 https://gerrit.wikimedia.org/r/#/c/6089/

We will have to update the Dump tests to no more reference sink directly
but use a proper accessing method that has yet to be written.

Change-Id: I1246739c4ea174b13af475db8cfcb48740ecc2df
2012-05-07 14:37:55 -07:00
Reedy
ab6e54e084 Param documentation
Explicitly define member variables

Change-Id: I028bcfd40cf7a402b040694ad7dacaab8da45e45
2012-04-28 23:47:23 +01:00
Aaron Schulz
761448fe40 Merge "Export::dumpFrom() doesn't return any values, and hence neither do any of the methods calling it (return $this->dumpFrom)" 2012-04-09 17:37:06 +00:00
Reedy
6b1ca85051 Export::dumpFrom() doesn't return any values, and hence neither do any of the methods calling it (return $this->dumpFrom)
Remove return statements and extra from upstream callers

Change-Id: Ibad983128ef601e9fab5538d9ec02963e024b0a6
2012-04-07 17:34:51 +01:00
Reedy
f080092e1a Make $procOpenResource protected as it's used on line 1011 in the Dump7ZipOutput subclass
Change-Id: If6a3a52b44d8a8c57f850bda515bdb307ce596d8
2012-04-07 17:26:06 +01:00
Christian Aistleitner
2c879b3818 Unbuffered queries result freeing & error handling
Puts result set ownership back into producer, and tries to restore the
database buffering upon exceptions during dumps

Change-Id: Ie3e2b5b39cc6cef25a0021694e7a53a92b1dff5b
2012-04-03 20:37:41 +02:00
Christian Aistleitner
5b31b92146 Allow closing dump output multiple times
Change-Id: Iab0645fb348f7256ab5cedf95b8a4424458ff4fc
2012-04-02 01:52:37 +02:00
Christian Aistleitner
0923acea72 Avoid doubling dump output
Change-Id: Ied8b8730cf1cd4a77346fbcae9013c9b6493dc8f
2012-03-30 22:28:29 +02:00
Christian Aistleitner
66c5335d29 Closing dump buffers on stream end
Change-Id: I7bef095f2f9189fb20064da4fd09ed4caa7a90e5
2012-03-26 11:26:48 +02:00
Aaron Schulz
35208039c4 Put the sha1 tag in <revision> and not wrongly in <page>
Change 1: while at it, also don't show the SHA1 if rev_deleted is set

Change-Id: I0d94338915e754bdee878d1e6570e2efc481b2b2
2012-03-23 13:29:05 -07:00
Sam Reed
c8eb4467f1 Fix user related direct member variable access 2012-02-16 00:54:34 +00:00
Sam Reed
76246b9bf5 More return documentation 2012-02-09 21:33:27 +00:00
Diederik van Liere
22746a5807 Add the new SHA1 revision field to the XML export, add SHA1 field to export-0.6.xsd and fix namespace element from string to integer. 2012-01-23 19:48:20 +00:00
Brion Vibber
707dfa9235 Revert r108764: doesn't appear to do what it says in the description, and no explanation why it's being done (presumably would just break searches again?) 2012-01-12 22:17:54 +00:00
Diederik van Liere
8bc7a18392 This commit restores getPrefixedText() to the Title in the XML. This means it does not break anything, the only change is that there is a new separate element that contains the namespace.
This commit is a follow up to:
r102575: Commit to fix bug 30513.
2012-01-12 21:34:55 +00:00
Niklas Laxström
6f91eb677a Followup r103945 - @since and whitespace 2011-12-24 14:40:59 +00:00
Sam Reed
c8102513e5 * (bug 32414) Empty page get a empty bytes attribute in Export/Dump
Pushing the values through intval seems enough, null -> 0


reedy@fenari:/home/wikipedia/common$ mwscript eval.php dewiki
> $var = null;

> var_dump( intval( $var ) );
int(0)

> var_dump($var );
NULL
2011-12-11 19:01:11 +00:00
Sam Reed
a9702c53af Fix use of undefined $file
Reduce code duplication in Dump7ZipOutput
2011-12-11 18:51:44 +00:00
Brion Vibber
53f5c13995 Followup r103945: fix regression in XML export namespace formatting for namespaces with spaces in them (eg 'User talk')
The changes in r103945 for bug 32376, bug 31697 accidentally let underscore-forms through for the namespace portion, when we're supposed to have the space form. Causes problems with search indexing.
2011-11-24 01:26:52 +00:00
Brion Vibber
8115df20ab * (bug 32376) XML export tweak to use canonical user namespaces instead of gendered ones for now
The gendered namespaces aren't listed in the <siteinfo> namespaces list, and just adding them as-is may break reader implementations.
Using the canonical form should have little effect on most activity while keeping things working.

Should resolve Lucene search problems (bug 31697) related to the Lucene search indexer not understanding the gendered namespace names.
After fix and reindex, the canonical forms should get returned and automatically transformed back into appropriate gendered forms in the search view.

[per IRC discussion check-up with Ariel about this bug and the patches on bug 30513 which cover related namespacey issues]
2011-11-22 19:33:53 +00:00
Ariel Glenn
d23fe7bcc3 followup to r103448, tighten up code 2011-11-18 09:08:29 +00:00
Ariel Glenn
81cc6c7b4c if user id is 0 and username is actually an IP, write it as <ip>, not <username> 2011-11-17 09:20:51 +00:00
Platonides
ba7c210f12 Fixup for r102875 parse error.
The post-commit hook is *again* not working...
2011-11-13 19:58:24 +00:00
Diederik van Liere
5589f55de8 This patch fixes rev. 102575. 2011-11-13 01:50:24 +00:00
Diederik van Liere
eadfd5a581 Commit to fix bug 30513. 2011-11-09 21:15:48 +00:00
Chad Horohoe
8b947409d9 Address fixme on r101606, should also call from $this 2011-11-03 00:41:12 +00:00
Ariel Glenn
06171d19bd clean up duplicated code, for fixme in r97178 2011-11-02 11:08:06 +00:00
Ariel Glenn
c8aa188e07 corrections for fixme in r96486 2011-11-02 09:55:43 +00:00
Ariel Glenn
669e5b9318 export specified range of revisions (as stubs) 2011-11-02 07:58:43 +00:00
Ariel Glenn
2a14ecd921 remove cruft that didn't all get cleaned up before commit in r95260, addressing fixme. 2011-09-22 07:03:25 +00:00
Sam Reed
27ec1d6377 Comment out unreachable code
Remove unreachable return false;
2011-09-21 16:34:23 +00:00
Ariel Glenn
443933fef5 throw exception if rename of output file fails 2011-09-15 17:18:13 +00:00
Ariel Glenn
be36f6e1fe getFilename renamed to getFilenames since it can return a list 2011-09-09 07:28:11 +00:00
Ariel Glenn
aed738967f get rid of duplication, remove unused function rename(), add documentation as per comments on r95260 2011-09-07 20:21:52 +00:00
Roan Kattouw
e1978da7a3 Fix parse error in r96275 2011-09-06 22:17:01 +00:00
Roan Kattouw
165a42ad11 Stylize Export.php 2011-09-05 11:23:49 +00:00
Roan Kattouw
6e336d3799 Whitespace fixes for r95272, r95604 2011-09-05 11:22:57 +00:00
Roan Kattouw
e9658c4b9e Fixes for r95260:
* Use protected instead of var
* Move documentation of closeRenameAndReopen() to parent class. Add a TODO for the other undocumented methods introduced in r95260
* Use the correct method name in the exceptions by using __METHOD__; messages were copypasted from one method to the other without changing anything. Also fix a typo ("argumnts")
* Minor coding style bit, will commit more style fixes in a minute
2011-09-05 11:16:09 +00:00
Ariel Glenn
0dcd589b6b define and use closeAndRename() after last write of xml dump file; convert from popen (child inherits all open descriptors and there is no workaround) to proc_open (CLOEXEC set on all descriptors), needed so close and rename doesn't hang forever if a child (prefetcher) is forked 2011-08-27 18:31:03 +00:00
Ariel Glenn
431bce6c78 replace WfDie() 2011-08-27 15:50:17 +00:00
Ariel Glenn
da81194225 add functions that support close and rename of output files as they are being written, used to write out checkpoint files at regular intervals during XML dump production 2011-08-22 22:01:32 +00:00