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

Re: [PATCH v2] git-remote-mediawiki: bugfix for pages w/ >500 revisions

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Sep 23, 2013, 17:58 UTC
Message-ID
<vpqr4cf773c.fsf@anie.imag.fr>
In-Reply-To
<1379957175-8606-1-git-send-email-benoit.person@gmail.fr>
Benoit Person <benoit.person@gmail.com> writes:
> The latest API renamed and moved the "continuing" information in the
> response, necessary to build the next query. The code failed to retrieve
> that information but still detected that it was in a "continuing
> query". As a result, it launched the same query over and over again.
Good, that's much cleaner.
> +		if ($result->{'query-continue'}) { # For legacy APIs
> +			$query->{rvstartid} = $result->{'query-continue'}->{revisions}->{rvstartid};
> +		} elsif ($result->{continue}) { # For newer APIs
I'd rather have the comments say "# API version < X" and "# API version
>= X". Next time the API change, "new" Vs "old" will become meaningless.
(But that should not block the patch from inclusion)
Thanks,
-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Benoit PersonNext: Eric Sunshine
Message 2 of 5 in “git-remote-mediawiki: bugfix for pages w/ >500 revisions”
  1. git-remote-mediawiki: bugfix for pages w/ >500 revisionsBenoit Person, Sep 23, 2013
  2. Matthieu MoySep 23, 2013
  3. Eric SunshineSep 23, 2013
  4. Benoit PersonSep 24, 2013
  5. Matthieu MoySep 24, 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.