From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?C=C3=A9lestin=20Matte?= Subject: [PATCH v5 05/31] git-remote-mediawiki: Move a variable declaration at the top of the code Date: Wed, 12 Jun 2013 17:43:22 +0200 Message-ID: <1371051828-12866-6-git-send-email-celestin.matte@ensimag.fr> References: <1371051828-12866-1-git-send-email-celestin.matte@ensimag.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: benoit.person@ensimag.fr, matthieu.moy@grenoble-inp.fr, =?UTF-8?q?C=C3=A9lestin=20Matte?= To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Wed Jun 12 17:44:59 2013 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UmnEI-0007Ue-HS for gcvg-git-2@plane.gmane.org; Wed, 12 Jun 2013 17:44:58 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756943Ab3FLPoS convert rfc822-to-quoted-printable (ORCPT ); Wed, 12 Jun 2013 11:44:18 -0400 Received: from mx1.imag.fr ([129.88.30.5]:43419 "EHLO shiva.imag.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756780Ab3FLPoO (ORCPT ); Wed, 12 Jun 2013 11:44:14 -0400 Received: from ensimag.imag.fr (ensimag.imag.fr [195.221.228.12]) by shiva.imag.fr (8.13.8/8.13.8) with ESMTP id r5CFiA5B028660 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 12 Jun 2013 17:44:11 +0200 Received: from ensibm.imag.fr (ensibm.imag.fr [195.221.228.8]) by ensimag.imag.fr (8.13.8/8.13.8/ImagV2.1.r_ens) with ESMTP id r5CFiBHF014989; Wed, 12 Jun 2013 17:44:11 +0200 Received: from tohwi-K50IE.imag.fr (ensibm [195.221.228.8]) by ensibm.imag.fr (8.13.8/8.13.8/ImagV2.1.sb_ens.pm) with ESMTP id r5CFhu5o014096; Wed, 12 Jun 2013 17:44:11 +0200 X-Mailer: git-send-email 1.8.3.rc3.18.g21a7b2c In-Reply-To: <1371051828-12866-1-git-send-email-celestin.matte@ensimag.fr> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (shiva.imag.fr [129.88.30.5]); Wed, 12 Jun 2013 17:44:11 +0200 (CEST) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: %basetimestamps declaration was lost in the middle of subroutines Signed-off-by: C=C3=A9lestin Matte Signed-off-by: Matthieu Moy --- contrib/mw-to-git/git-remote-mediawiki.perl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/mw-to-git/git-remote-mediawiki.perl b/contrib/mw-t= o-git/git-remote-mediawiki.perl index f19b276..fe1343d 100755 --- a/contrib/mw-to-git/git-remote-mediawiki.perl +++ b/contrib/mw-to-git/git-remote-mediawiki.perl @@ -95,6 +95,9 @@ unless ($fetch_strategy) { $fetch_strategy =3D "by_page"; } =20 +# Remember the timestamp corresponding to a revision id. +my %basetimestamps; + # Dumb push: don't update notes and mediawiki ref to reflect the last = push. # # Configurable with mediawiki.dumbPush, or per-remote with @@ -480,9 +483,6 @@ sub get_last_local_revision { return $lastrevision_number; } =20 -# Remember the timestamp corresponding to a revision id. -my %basetimestamps; - # Get the last remote revision without taking in account which pages a= re # tracked or not. This function makes a single request to the wiki thu= s # avoid a loop onto all tracked pages. This is useful for the fetch-by= -rev --=20 1.8.3.rc3.18.g21a7b2c