https://wiki.4intra.net/index.php?title=MW_Import%26Export&feed=atom&action=historyMW Import&Export - Revision history2024-03-28T08:22:42ZRevision history for this page on the wikiMediaWiki 1.26.4https://wiki.4intra.net/index.php?title=MW_Import%26Export&diff=6622&oldid=prevVitaliyFilippov: moved MW Import&Export/en to MW Import&Export2013-05-31T13:48:05Z<p>moved <a href="/MW_Import%26Export/en" title="MW Import&Export/en">MW Import&Export/en</a> to <a href="/MW_Import%26Export" title="MW Import&Export">MW Import&Export</a></p>
<table class='diff diff-contentalign-left'>
<tr style='vertical-align: top;' lang='en'>
<td colspan='1' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='1' style="background-color: white; color:black; text-align: center;">Revision as of 13:48, 31 May 2013</td>
</tr><tr><td colspan='2' style='text-align: center;' lang='en'><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>VitaliyFilippovhttps://wiki.4intra.net/index.php?title=MW_Import%26Export&diff=1033&oldid=prevVitaliyFilippov at 12:23, 20 May 20112011-05-20T12:23:00Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 12:23, 20 May 2011</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l3" >Line 3:</td>
<td colspan="2" class="diff-lineno">Line 3:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>This  is fixed in the [[MediaWiki4Intranet]] MW distribution ({{Bug|47362}}) using a patch to MediaWiki code (see [[#Links]]). This is not the only feature, there are many useful features added.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>This  is fixed in the [[MediaWiki4Intranet]] MW distribution ({{Bug|47362}}) using a patch to MediaWiki code (see [[#Links]]). This is not the only feature, there are many useful features added.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">__TOC__</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">The features are listed below. With all these improvements</ins>, the <ins class="diffchange diffchange-inline">import mechanism is backwards compatible and is able to import dumps from MediaWikis without these improvements.</ins></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">So</del>, the <del class="diffchange diffchange-inline">features:</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>== Upload export/import ==</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>== Upload export/import ==</div></td></tr>
<!-- diff cache key wiki4intranet:diff:version:1.11a:oldid:1031:newid:1033 -->
</table>VitaliyFilippovhttps://wiki.4intra.net/index.php?title=MW_Import%26Export&diff=1031&oldid=prevVitaliyFilippov: /* Conflict detection */2011-05-20T12:21:26Z<p><span dir="auto"><span class="autocomment">Conflict detection</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 12:21, 20 May 2011</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l33" >Line 33:</td>
<td colspan="2" class="diff-lineno">Line 33:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>== Conflict detection ==</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>== Conflict detection ==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">Оригинальный импорт </del>MediaWiki <del class="diffchange diffchange-inline">работает просто — заливает ревизии и говорит «готово»</del>. <del class="diffchange diffchange-inline">В новых версиях он говорит чуть больше — «готово</del>, <del class="diffchange diffchange-inline">что-то залил»</del>, <del class="diffchange diffchange-inline">или «готово</del>, <del class="diffchange diffchange-inline">ничего не залил» на каждую страницу</del>. <del class="diffchange diffchange-inline">Однако если часто использовать импорт-экспорт, этого недостаточно</del>: <del class="diffchange diffchange-inline">хочется видеть</del>, <del class="diffchange diffchange-inline">у кого версия страница была новее, вносил ли кто-то изменения локально и т. п</del>. <del class="diffchange diffchange-inline">По сути</del>, <del class="diffchange diffchange-inline">это добавляет </del>DVCS-<del class="diffchange diffchange-inline">возможности в </del>MediaWiki — <del class="diffchange diffchange-inline">наборами ревизий статей становится можно обмениваться в широком круге </del>Wiki<del class="diffchange diffchange-inline">-систем</del>.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">The stock </ins>MediaWiki <ins class="diffchange diffchange-inline">import/export works very simply — it creates the revisions and tells «done»</ins>. <ins class="diffchange diffchange-inline">In more later versions</ins>, <ins class="diffchange diffchange-inline">it tells «done</ins>, <ins class="diffchange diffchange-inline">something uploaded»</ins>, <ins class="diffchange diffchange-inline">or «done, nothing uploaded» for each imported page</ins>. <ins class="diffchange diffchange-inline">But it's not enough if you use it often</ins>: <ins class="diffchange diffchange-inline">you want to see where the newer version was</ins>, <ins class="diffchange diffchange-inline">was it changed by someone and etc</ins>. <ins class="diffchange diffchange-inline">These features are available in our version</ins>, <ins class="diffchange diffchange-inline">and it adds </ins>DVCS-<ins class="diffchange diffchange-inline">like functionality into </ins>MediaWiki — <ins class="diffchange diffchange-inline">you can exchange revision sets between many </ins>Wiki <ins class="diffchange diffchange-inline">installations</ins>.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">Вот это и есть «выявление конфликтов» импорта и расширенный отчёт по импортированным страницам</del>. <del class="diffchange diffchange-inline">Он включает в себя по сообщению на каждую импортированную страницу</del>, <del class="diffchange diffchange-inline">сообщений бывает </del>5 <del class="diffchange diffchange-inline">вариантов</del>:</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">This is called "import conflict detection" and advanced import report</ins>. <ins class="diffchange diffchange-inline">It includes a message for each imported page</ins>, <ins class="diffchange diffchange-inline">it can be of one of </ins>5 <ins class="diffchange diffchange-inline">types</ins>:</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div># <del class="diffchange diffchange-inline">Все редакции были ранее импортированы</del>. <del class="diffchange diffchange-inline">Локальных изменений нет</del>.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div># <ins class="diffchange diffchange-inline">All revisions were previously imported</ins>. <ins class="diffchange diffchange-inline">No local changes</ins>.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div># <del class="diffchange diffchange-inline">Все редакции были ранее импортированы</del>. <del class="diffchange diffchange-inline">Страница изменена локально</del>.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div># <ins class="diffchange diffchange-inline">All revisions were previously imported</ins>. <ins class="diffchange diffchange-inline">Page changed locally</ins>.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div># N <del class="diffchange diffchange-inline">версий</del>.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div># N <ins class="diffchange diffchange-inline">revisions imported</ins>.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div># N <del class="diffchange diffchange-inline">версий </del>(<del class="diffchange diffchange-inline">новая страница</del>).</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div># N <ins class="diffchange diffchange-inline">revisions imported </ins>(<ins class="diffchange diffchange-inline">new page</ins>).</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div># N <del class="diffchange diffchange-inline">версий </del>(<del class="diffchange diffchange-inline">конфликт</del>: XX (<del class="diffchange diffchange-inline">импорт</del>) <del class="diffchange diffchange-inline">и </del>YY (<del class="diffchange diffchange-inline">локальная</del>))<del class="diffchange diffchange-inline">.</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div># N <ins class="diffchange diffchange-inline">revisions imported </ins>(<ins class="diffchange diffchange-inline">conflict</ins>: XX (<ins class="diffchange diffchange-inline">import</ins>) <ins class="diffchange diffchange-inline">and </ins>YY (<ins class="diffchange diffchange-inline">local</ins>)).</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">При всех этих доработках механизм импорта/экспорта обратно совместим с экспортными файлами стандартных версий MediaWiki. То есть, в модифицированную Wiki можно загрузить экспортный файл из стандартной, а в стандартную — из модифицированной, в случае, если не экспортируются файлы</del>.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>== Installation ==</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>== Installation ==</div></td></tr>
<!-- diff cache key wiki4intranet:diff:version:1.11a:oldid:1030:newid:1031 -->
</table>VitaliyFilippovhttps://wiki.4intra.net/index.php?title=MW_Import%26Export&diff=1030&oldid=prevVitaliyFilippov: Новая страница: «Original MediaWiki import/export mechanism exports only page texts, but not uploaded files. This is fixed in the MediaWiki4Intranet MW distribution ({{Bug|4736...»2011-05-20T12:17:34Z<p>Новая страница: «Original MediaWiki import/export mechanism exports only page texts, but not uploaded files. This is fixed in the <a href="/MediaWiki4Intranet" class="mw-redirect" title="MediaWiki4Intranet">MediaWiki4Intranet</a> MW distribution ({{Bug|4736...»</p>
<p><b>New page</b></p><div>Original MediaWiki import/export mechanism exports only page texts, but not uploaded files.<br />
<br />
This is fixed in the [[MediaWiki4Intranet]] MW distribution ({{Bug|47362}}) using a patch to MediaWiki code (see [[#Links]]). This is not the only feature, there are many useful features added.<br />
<br />
__TOC__<br />
So, the features:<br />
<br />
== Upload export/import ==<br />
<br />
We've implemented '''file upload export and import'''. There are two options:<br />
* Either file data is included into the export file, which is made <tt>multipart/related</tt> "archive" from just XML.<br />
* Or the file remains XML, and HTTP links and SHA1 hashes of each exported file is included into it. So these files can be downloaded by target Wiki, if it doesn't has them yet. This greatly reduces export file size, but requires HTTP access to source wiki.<br />
<br />
To implement this, we also needed to change <tt>filerepo/LocalFile.php</tt> slightly, because in the stock MediaWiki, old upload revisions have a strange "archivation timestamp», usually equal to the timestamp of '''next''' revision. Moreover, sometimes it's not just equal to timestamp of the next revision, but differs from it a second or two. The patch fixes this behaviour, so each old upload has it's own timestamp in the name, and their names become independent of the next revision, so the import/export also becomes more correct.<br />
<br />
{{caution}} Because of this change, if you apply the patch to a non-empty MediaWiki installation, you need to run a maintenance tool from [[#Links]] which will rename old uploaded files.<br />
<br />
== Advanced page selection ==<br />
<br />
We've also implemented advanced selection of pages for export:<br />
* From a category, including its subcategories.<br />
* And/or from namespace.<br />
* Inclusion of used templates, images and/or linked pages («template/image/page link closure»).<br />
*: It's very important that this "closure" is really "closure" and works correctly for any template inclusion depth, for images, included into templates, and etc.<br />
*: Also, the selection of linked pages is now used by «Add pages» instead of «user-invisible» features that are ran after clicking "Export". I.e., the "Export" now exports just pages that are in the list.<br />
<br />
After page selection, the following filters could be applied:<br />
* Selection only of pages changed after some date, which allows for "incremental" replication - replication only of pages changed after some date.<br />
* Selection only of pages which are NOT in the selected category («not in category» filter).<br />
<br />
Also, [[IntraACL]] rights are supported — закрытые от чтения страницы не попадают в список выбранных, также в список в этом случае не попадает лишняя страница «Доступ запрещён».<br />
<br />
== Conflict detection ==<br />
<br />
Оригинальный импорт MediaWiki работает просто — заливает ревизии и говорит «готово». В новых версиях он говорит чуть больше — «готово, что-то залил», или «готово, ничего не залил» на каждую страницу. Однако если часто использовать импорт-экспорт, этого недостаточно: хочется видеть, у кого версия страница была новее, вносил ли кто-то изменения локально и т. п. По сути, это добавляет DVCS-возможности в MediaWiki — наборами ревизий статей становится можно обмениваться в широком круге Wiki-систем.<br />
<br />
Вот это и есть «выявление конфликтов» импорта и расширенный отчёт по импортированным страницам. Он включает в себя по сообщению на каждую импортированную страницу, сообщений бывает 5 вариантов:<br />
# Все редакции были ранее импортированы. Локальных изменений нет.<br />
# Все редакции были ранее импортированы. Страница изменена локально.<br />
# N версий.<br />
# N версий (новая страница).<br />
# N версий (конфликт: XX (импорт) и YY (локальная)).<br />
<br />
При всех этих доработках механизм импорта/экспорта обратно совместим с экспортными файлами стандартных версий MediaWiki. То есть, в модифицированную Wiki можно загрузить экспортный файл из стандартной, а в стандартную — из модифицированной, в случае, если не экспортируются файлы.<br />
<br />
== Installation ==<br />
<br />
Installation is very simple:<br />
* Download the [[#Links|patch]] for your MediaWiki version, apply it with <tt>patch -p0 < '''downloaded_patch.diff'''</tt>.<br />
* If there is no patch for your MediaWiki version, either update MediaWiki, try one from the version close to yours, or ":-(" and you'll have to try to fix it by hand.<br />
* If you are installing a patch to a '''non-empty''' MediaWiki installation, also download [[#Links|maintenance script]], put it into <tt>maintenance</tt> directory and run it from there with <tt>php file-upload-renamer.php</tt>.<br />
<br />
== TODO ==<br />
<br />
* Upload import report. Now, import reports only about importing text revisions of the page '''File:XXX'''. So, '''if''' the article exists and has no real upload, and '''if''' an export file which adds this revision is imported, '''then''' the upload will emerge, and import will tell nothing about it.<br />
<br />
== Changes ==<br />
<br />
* 2011-02-22: Disabled adding of empty marker revision with comment "N revisions imported" as it can lead to infinite multiplication of revisions in the case of cross-replication.<br />
* 2011-03-15: Fixed «Only last revision» checkbox behaviour for uploads, now it's working as expected. Fixes SHA1 hash calculation, as MediaWiki uses base36-encoding of it, not hex.<br />
* 2011-05-19: ('''Changes are available only for MediaWiki4Intranet and MediaWiki 1.16.2''', not for old or trunk versions): Improvements in page selection:<br />
*# Selection of used images, templates and page links is moved into "Add pages». Export now exports '''only''' pages which are listed in the textbox.<br />
*# Added filter «only pages '''not''' in category», applied '''after''' all additions to the page list, which allows denying export of some category.<br />
*# Changed "modification time" filter behaviour - it's now also applied '''after''' all additions, just like the "not-category" filter. This allows for "incremental" replication of pages.<br />
*# Page selection code is optimized and works much faster now.<br />
<br />
== Links ==<br />
<br />
* [http://mediawiki4intranet.googlecode.com/hg/custisinstall/patches-1.14.1/Y-001-import-export-images-and-conflicts.diff?r=mw4install Patch from MediaWiki4Intranet 1.14.1], differs from the patch to stock MediaWiki only by requirement of another patch: [http://mediawiki4intranet.googlecode.com/hg/custisinstall/patches-1.14.1/Y-000-translit-upload-filenames.diff?r=mw4install translit-upload-filenames]. Does not contain changes after 2011-02-22.<br />
* [http://mediawiki4intranet.googlecode.com/hg/custisinstall/patches/Y-001-import-export-images-and-conflicts.diff?r=mw4install Patch from MediaWiki4Intranet 1.16.2], differs from the patch to stock MediaWiki only by requirement of another patch: [http://mediawiki4intranet.googlecode.com/hg/custisinstall/patches/Y-000-translit-upload-filenames.diff?r=mw4install translit-upload-filenames].<br />
* [http://mediawiki4intranet.googlecode.com/hg/import-export-patch/MW4Intranet-ImportExportPatch-1.14.1.diff?r=files Patch for MediaWiki 1.14.1], does not contain changes after 2011-02-22.<br />
* [http://mediawiki4intranet.googlecode.com/hg/import-export-patch/MW4Intranet-ImportExportPatch-1.16.2.diff?r=files Patch for MediaWiki 1.16.2].<br />
* [http://mediawiki4intranet.googlecode.com/hg/import-export-patch/MW4Intranet-ImportExportPatch-svn85617.diff?r=files Patch for MediaWiki 1.17-dev] (for [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3?pathrev=85617 svn85617]), without changes from 2011-05-19.<br />
* [http://mediawiki4intranet.googlecode.com/hg/tools/wiki-crawl-export.php?r=mw4install Crawler script] to export dumps compatible with this patch from '''stock''' MediaWikis which don't have this patch applied.<br />
* [http://mediawiki4intranet.googlecode.com/hg/import-export-patch/file-upload-renamer.php?r=files Maintenance tool] which changes old upload naming scheme.<br />
* Patch is sent to [https://bugzilla.wikimedia.org/show_bug.cgi?id=22881 Wikimedia Bug 22881]. We hope it will be included into future MediaWiki versions after some rework.<br />
<br />
[[Category:MediaWiki]]<br />
[[ru:MW Import&Export/ru]]</div>VitaliyFilippov