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

Re: [RFC/PATCH] Added a remote helper to interact with mediawiki, pull & clone handled

From
Jeff King <peff@peff.net>
Date
Jun 2, 2011, 22:49 UTC
Message-ID
<20110602224931.GA28189@sigill.intra.peff.net>
In-Reply-To
<BANLkTi=eYg3uT1hQZO03i4MLyhRkPzXK6w@mail.gmail.com>
On Thu, Jun 02, 2011 at 10:28:33PM +0200, Arnaud Lacurie wrote:
Show 10 quoted lines
> > Overall, it's looking pretty good. I like that I can resume a
> > half-finished import via "git fetch". Though I do have one complaint:
> > running "git fetch" fetches the metainfo for every revision of every
> > page, just as it does for an initial clone. Is there something in the
> > mediawiki API to say "show me revisions since N" (where N would be the
> > mediawiki revision of the tip of what we imported)?
> 
> I am not sure I understand your question. Because actually, we are
> supporting this, thanks to git notes. Like when you git fetch after a
> clone, it checks only the last revisions

Sorry, I was partially wrong in what I wrote above. I was resuming a failed import (because of the bogus timestamp), so the numbers of revisions were still high, and I thought they were the same as in the original version. I see now doing a fetch on the completed import that it properly finds 0 revisions for each page. So that's good.

However, it does still take O(number of pages) requests just to find out that there is nothing to fetch. For the git wiki, this takes on the order of 1.5 minutes to do an empty fetch. When getting the list of pages, I wonder if there is a way in the mediawiki API to say "show me only pages which have been modified since rev N".

-Peff
Previous: Arnaud LacurieNext: Matthieu Moy
Message 4 of 8 in “Added a remote helper to interact with mediawiki, pull & clone handled”
  1. Added a remote helper to interact with mediawiki, pull & clone handledArnaud Lacurie, Jun 2, 2011
  2. Jeff KingJun 2, 2011
  3. Arnaud LacurieJun 2, 2011
  4. Jeff KingJun 2, 2011
  5. Matthieu MoyJun 2, 2011
  6. Jeff KingJun 3, 2011
  7. Junio C HamanoJun 2, 2011
  8. Arnaud LacurieJun 2, 2011

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.