path: root/contrib/mw-to-git/t/
diff options
authorMatthieu Moy <>2012-07-06 10:03:14 (GMT)
committerJunio C Hamano <>2012-07-06 19:20:46 (GMT)
commit5a29217dda0625707a46f527d17489c0bff0c2c9 (patch)
treeef332f484bc46a4e3cebe8f600d97ea4ccc212ad /contrib/mw-to-git/t/
parent312fa9aa122631a307d81c4ca226647e7c001ee8 (diff)
git-remote-mediawiki: more efficient 'pull' in the best case
The only way to fetch new revisions from a wiki before this patch was to query each page for new revisions. This is good when tracking a small set of pages on a large wiki, but very inefficient when tracking many pages on a wiki with little activity. Implement a new strategy that queries the wiki for its last global revision, queries each new revision, and filter out pages that are not tracked. Signed-off-by: Simon Perrat <> Signed-off-by: Simon CATHEBRAS <> Signed-off-by: Julien KHAYAT <> Signed-off-by: Charles ROUSSEL <> Signed-off-by: Guillaume SASDY <> Signed-off-by: Matthieu Moy <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'contrib/mw-to-git/t/')
1 files changed, 17 insertions, 0 deletions
diff --git a/contrib/mw-to-git/t/ b/contrib/mw-to-git/t/
new file mode 100755
index 0000000..5c22457
--- /dev/null
+++ b/contrib/mw-to-git/t/
@@ -0,0 +1,17 @@
+test_description='Test the Git Mediawiki remote helper: git pull by revision'
+. ./
+. ./
+test_expect_success 'configuration' '
+ git config --global mediawiki.fetchStrategy by_rev