From: Jeff King <peff@peff.net>
To: Arnaud Lacurie <arnaud.lacurie@ensimag.imag.fr>
Cc: git@vger.kernel.org,
"Jérémie Nikaes" <jeremie.nikaes@ensimag.imag.fr>,
"Claire Fousse" <claire.fousse@ensimag.imag.fr>,
"David Amouyal" <david.amouyal@ensimag.imag.fr>,
"Matthieu Moy" <matthieu.moy@grenoble-inp.fr>,
"Sylvain Boulmé" <sylvain.boulme@imag.fr>
Subject: Re: [RFC/PATCH] Added a remote helper to interact with mediawiki, pull & clone handled
Date: Thu, 2 Jun 2011 18:49:31 -0400 [thread overview]
Message-ID: <20110602224931.GA28189@sigill.intra.peff.net> (raw)
In-Reply-To: <BANLkTi=eYg3uT1hQZO03i4MLyhRkPzXK6w@mail.gmail.com>
On Thu, Jun 02, 2011 at 10:28:33PM +0200, Arnaud Lacurie wrote:
> > 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
next prev parent reply other threads:[~2011-06-02 22:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-02 9:28 [RFC/PATCH] Added a remote helper to interact with mediawiki, pull & clone handled Arnaud Lacurie
2011-06-02 17:03 ` Jeff King
2011-06-02 20:28 ` Arnaud Lacurie
2011-06-02 22:49 ` Jeff King [this message]
2011-06-02 22:37 ` Matthieu Moy
2011-06-03 3:43 ` Jeff King
2011-06-02 18:01 ` Junio C Hamano
2011-06-02 20:58 ` Arnaud Lacurie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110602224931.GA28189@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=arnaud.lacurie@ensimag.imag.fr \
--cc=claire.fousse@ensimag.imag.fr \
--cc=david.amouyal@ensimag.imag.fr \
--cc=git@vger.kernel.org \
--cc=jeremie.nikaes@ensimag.imag.fr \
--cc=matthieu.moy@grenoble-inp.fr \
--cc=sylvain.boulme@imag.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).