<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/contrib/mw-to-git/t/test-gitmw.pl, branch maint</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=maint</id>
<link rel='self' href='https://git.shady.money/git/atom?h=maint'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2025-05-12T17:55:45Z</updated>
<entry>
<title>contrib: remove "mw-to-git"</title>
<updated>2025-05-12T17:55:45Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2025-05-12T09:19:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=21b4f9009dd5a03e8c16d2c9473c896cff791001'/>
<id>urn:sha1:21b4f9009dd5a03e8c16d2c9473c896cff791001</id>
<content type='text'>
The "mw-to-git" directory contains tools for accessing MediaWiki via
Git. The scripts are essentially unmaintained in Git: despite a couple
of global cleanups, the last changes were a couple of security-related
issues part of 9a8606465e8 (remote-mediawiki: use "sh" to eliminate
unquoted commands, 2020-09-21) and its parents. We don't ever run any of
the tests so it is more likely than not that many of the tests have been
bitrotting, like e.g. documented in f8ab018dafc (remote-mediawiki tests:
annotate failing tests, 2020-09-21).

According to Matthieu Moy [1], one of the original developers of this
tool, it didn't receive any attention recently and there is no
motivation to keep maintaining it anymore in the community. The project
has been spun out of Git [2] and thus has a new official home, but did
not receive much attention over there, either.

As such, it seems like the MediaWiki transport helper is slowly fading
away. But given that there is a new home, it doesn't make sense to have
it as part of Git anymore only to let it rot. Remove the directory.

[1]: &lt;108f297a-b415-4742-80e4-51ea02af18e9@matthieu-moy.fr&gt;
[2]: https://github.com/Git-Mediawiki/Git-Mediawiki

Signed-off-by: Patrick Steinhardt &lt;ps@pks.im&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>remote-mediawiki tests: use inline PerlIO for readability</title>
<updated>2020-09-21T19:37:38Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2020-09-21T10:39:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2388541a77540b8e2acfcf77904515ebb65ffcc5'/>
<id>urn:sha1:2388541a77540b8e2acfcf77904515ebb65ffcc5</id>
<content type='text'>
Replace the use of the "open" pragma with a three-arg open in the
places that actually care about UTF-8, while leaving those that
don't (the config parsing).

Unlike the previous "encoding" pragma change this isn't needed for
compatibility with anything. I just think it's easier to read code
that has localized effects than code that changes global settings.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>remote-mediawiki tests: replace deprecated Perl construct</title>
<updated>2020-09-21T19:37:38Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2020-09-21T10:39:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4f80bc9bc2706b9ef467fab3c53b6815f37b2854'/>
<id>urn:sha1:4f80bc9bc2706b9ef467fab3c53b6815f37b2854</id>
<content type='text'>
The use of the encoding pragma has been a hard error since Perl
5.18 (released in 2013).

What this script really wanted to do was to decode @ARGV and write out
some files with the UTF-8 PerlIO layer. Let's just do that explicitly
instead.

This explicitly does not retain the previous UTF-8 semantics of the
script. The "encoding" pragma had all sorts of global effects (program
text being UTF-8, stdin/stdout etc.). But the only thing that was
required was decoding @ARGV and writing out UTF-8 data, which is
currently facilitated with the "open" pragma.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>remote-mediawiki tests: use a more idiomatic dispatch table</title>
<updated>2020-09-21T19:37:38Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2020-09-21T10:39:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dde66eb6f1d29c6b5729b41904eaef69234be07c'/>
<id>urn:sha1:dde66eb6f1d29c6b5729b41904eaef69234be07c</id>
<content type='text'>
Change the dispatch table code in test-gitmw.pl to use a hash where
subroutine references are the values. This is more obvious than a hash
where the values are strings we'll use to go searching around in the
symbol table for the function.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-remote-mediawiki: support for uploading file in test environment</title>
<updated>2012-07-06T19:20:46Z</updated>
<author>
<name>Matthieu Moy</name>
<email>Matthieu.Moy@imag.fr</email>
</author>
<published>2012-07-06T10:03:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=eb63bfaadf8d4f43c19c0384c45a9718acd85e66'/>
<id>urn:sha1:eb63bfaadf8d4f43c19c0384c45a9718acd85e66</id>
<content type='text'>
This will be used for testing git-remote-mediawiki's import feature on a
wiki containing media files.

Signed-off-by: Simon CATHEBRAS &lt;Simon.Cathebras@ensimag.imag.fr&gt;
Signed-off-by: Julien KHAYAT &lt;Julien.Khayat@ensimag.imag.fr&gt;
Signed-off-by: Simon Perrat &lt;simon.perrat@ensimag.imag.fr&gt;
Signed-off-by: Charles ROUSSEL &lt;Charles.Roussel@ensimag.imag.fr&gt;
Signed-off-by: Guillaume SASDY &lt;Guillaume.Sasdy@ensimag.imag.fr&gt;
Signed-off-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-remote-mediawiki: test environment of git-remote-mediawiki</title>
<updated>2012-07-06T19:20:45Z</updated>
<author>
<name>Guillaume Sasdy</name>
<email>guillaume.sasdy@ensimag.imag.fr</email>
</author>
<published>2012-07-06T10:03:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8435b289890739600436b6c902156fc073752ffb'/>
<id>urn:sha1:8435b289890739600436b6c902156fc073752ffb</id>
<content type='text'>
In order to test git-remote-mediawiki, a set of functions is needed to
manage a MediaWiki: edit a page, remove a page, fetch a page, fetch all
pages on a given wiki.

A few helper function are also provided to check the content of
directories.

In addition, this patch provides Makefiles to execute tests.
See the README file for more details.

Signed-off-by: Simon CATHEBRAS &lt;Simon.Cathebras@ensimag.imag.fr&gt;
Signed-off-by: Julien KHAYAT &lt;Julien.Khayat@ensimag.imag.fr&gt;
Signed-off-by: Simon Perrat &lt;simon.perrat@ensimag.imag.fr&gt;
Signed-off-by: Charles ROUSSEL &lt;Charles.Roussel@ensimag.imag.fr&gt;
Signed-off-by: Guillaume SASDY &lt;Guillaume.Sasdy@ensimag.imag.fr&gt;
Signed-off-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
