git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH V2] git-remote-mediawiki: remove hardcoded version number in the test suite

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 14, 2013, 18:09 UTC
Message-ID
<7vsj0ko97s.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1371205151-13549-1-git-send-email-benoit.person@ensimag.fr>
benoit.person@ensimag.fr writes:
Show 5 quoted lines
> From: Benoit Person <benoit.person@ensimag.fr>
>
> Updates the code to make it more easy to switch mediawiki version when
> testing. Before that, the version number was partly hardcoded, partly
> in a var.

This definitely goes in a good direction; you no longer have to touch random lines in test-gitmw-lib.sh and what you have to edit is very much localized.

It seems t/test.config that is tracked is also designed to be randomly edited to suit user's needs.

The patch does not make things any worse, but I would imagine that a better longer term structure would be for contrib/mw-to-git/Makefile to create contrib/mw-to-git/t/test.config by replacing variables in contrib/mw-to-git/t/test.config-template, so that the user could say

	cd contrib/mw-to-git
        make MW_VERSION_MAJOR=1.20 MW_VERSION_MINOR=0 test
or something like that.
But of course, that is a totally unrelated issue.
Will apply.  Thanks.
Previous: benoit.person@ensimag.fr
Message 2 of 2 in “git-remote-mediawiki: remove hardcoded version number in the test suite”
  1. git-remote-mediawiki: remove hardcoded version number in the test suitebenoit.person@ensimag.fr, Jun 14, 2013
  2. Junio C HamanoJun 14, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.