git-remote-mediawiki: move a variable declaration at the top of the code
%basetimestamps declaration was lost in the middle of subroutines Signed-off-by: Célestin Matte <celestin.matte@ensimag.fr> Signed-off-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Célestin Matte committed
Jun 14, 2013 at 15:50 UTC
0afd29e2d353e58cad5b7ad90705e829d5815d45
1 file changed
+3
-3
contrib/mw-to-git/git-remote-mediawiki.perl
+3
-3
@@ -91,6 +91,9 @@ unless ($fetch_strategy) {
91
$fetch_strategy = "by_page";
92
}
93
94
+# Remember the timestamp corresponding to a revision id.
95
+my %basetimestamps;
96
+
97
# Dumb push: don't update notes and mediawiki ref to reflect the last push.
98
#
99
# Configurable with mediawiki.dumbPush, or per-remote with
@@ -480,9 +483,6 @@ sub get_last_local_revision {
483
return $lastrevision_number;
484
}
485
483
-# Remember the timestamp corresponding to a revision id.
484
-my %basetimestamps;
485
-
486
# Get the last remote revision without taking in account which pages are
487
# tracked or not. This function makes a single request to the wiki thus
488
# avoid a loop onto all tracked pages. This is useful for the fetch-by-rev