Nikerabbit has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/332893 )

Change subject: Move mediawiki to repong
......................................................................

Move mediawiki to repong

* Branches feature was currently unused, not ported
* Updated force languages list: removed existing languages with only
  few messages translated each. No point forcing udpates to those
  when they are inactive. Only exception is rup which is at 11%
  currently and not exported after this change until it reaches 13%.
  Replaced with languages that are never 100%, such as informal
  variants and other variants.
* Export threshold is now also applied to installer and api.

Change-Id: I9649dfc9f8bfd8b6fad8a32e6809ff24edbebee7
---
M REPOCONF
M REPOCONF.commit
M bin/REPONG-PROJECTS
M bin/repocommit
M bin/repocreate
M bin/repoexport
M bin/repoupdate
M repoconfig.commit.json
M repoconfig.json
9 files changed, 27 insertions(+), 41 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/translatewiki 
refs/changes/93/332893/1

diff --git a/REPOCONF b/REPOCONF
index 047828e..2826a5a 100644
--- a/REPOCONF
+++ b/REPOCONF
@@ -1,8 +1,6 @@
 # If not set, will not setup l10n-bot commit stuff for MediaWiki git extensions
 #REPO_RW=yes
 
-REPO_MEDIAWIKI=https://gerrit.wikimedia.org/r/p//mediawiki/core.git
-REPO_MEDIAWIKI_BRANCHES="master"
 REPO_MWEXTGIT=https://gerrit.wikimedia.org/r/p/mediawiki/extensions
 REPO_MWSKINGIT=https://gerrit.wikimedia.org/r/p/mediawiki/skins
 
diff --git a/REPOCONF.commit b/REPOCONF.commit
index c26734a..a96f559 100644
--- a/REPOCONF.commit
+++ b/REPOCONF.commit
@@ -9,8 +9,6 @@
 fi
 
 # MediaWiki
-REPO_MEDIAWIKI=ssh://l10n-...@gerrit.wikimedia.org:29418/mediawiki/core.git
-REPO_MEDIAWIKI_BRANCHES="master"
 REPO_MWEXTGIT=ssh://l10n-...@gerrit.wikimedia.org:29418/mediawiki/extensions
 REPO_MWSKINGIT=ssh://l10n-...@gerrit.wikimedia.org:29418/mediawiki/skins
 
diff --git a/bin/REPONG-PROJECTS b/bin/REPONG-PROJECTS
index f17d04a..98264de 100644
--- a/bin/REPONG-PROJECTS
+++ b/bin/REPONG-PROJECTS
@@ -22,6 +22,7 @@
 kiwix
 lib.reviews
 mantis
+mediawiki
 mwgerrit
 mwgithub
 nfcring-control
diff --git a/bin/repocommit b/bin/repocommit
index d6cdccf..75a55ec 100755
--- a/bin/repocommit
+++ b/bin/repocommit
@@ -79,18 +79,6 @@
                bzr commit -m "$COMMITMSG"
        done
 
-elif [ "$PROJECT" = "mediawiki" ]
-then
-       if [ -z "$REPO_MEDIAWIKI_BRANCHES" ]
-       then echo "Add REPO_MEDIAWIKI_BRANCHES to REPOCONF"; exit 1
-       fi
-
-       for BRANCH in $REPO_MEDIAWIKI_BRANCHES
-       do
-               gitCommitGerrit "$DIR/$PROJECT/$BRANCH"
-       done
-       "$DIRSCRIPT/merge-wmgerrit-patches" "mediawiki/core"
-
 elif [ "$PROJECT" = "mediawiki-extensions" ]
 then
        for i in `ls "$DIR/$PROJECT/extensions"`
diff --git a/bin/repocreate b/bin/repocreate
index 029b88d..e26cc56 100755
--- a/bin/repocreate
+++ b/bin/repocreate
@@ -49,16 +49,6 @@
                cd ..
        done
 
-elif [ "$PROJECT" = "mediawiki" ]
-then
-       checkVar 'REPO_MEDIAWIKI'
-       checkVar 'REPO_MEDIAWIKI_BRANCHES'
-       mkdir -p $PROJECT
-       for BRANCH in $REPO_MEDIAWIKI_BRANCHES
-       do
-               "$CLUPDATE_GERRIT" "$REPO_MEDIAWIKI" "$DIR/$PROJECT/$BRANCH" 
$BRANCH
-       done
-
 elif [ "$PROJECT" = "mediawiki-extensions" ]
 then
        mkdir -p $PROJECT/extensions
diff --git a/bin/repoexport b/bin/repoexport
index 71b91bd..03088f0 100755
--- a/bin/repoexport
+++ b/bin/repoexport
@@ -15,8 +15,6 @@
 echo "$(date --rfc-3339=seconds --utc) [$(whoami) at $DIR] $0 $@" >> ${DIRLOG}
 
 EXPORTER=$WIKI/extensions/Translate/scripts/export.php
-SKIPLANGS="test,aeb,be-x-old,crh,dk,en,fiu-vro,gan,gom,hif,kbd,kk,kk-cn,iu,kk-kz,kk-tr,ko-kp,ku,ku-arab,no,ruq,simple,sr,tg,tp,tt,ug,zh,zh-classical,zh-cn,zh-sg,zh-hk,zh-min-nan,zh-mo,zh-my,zh-tw,zh-yue,bbc,ady"
-FORCELANGS="chy,cr,ki,nrm,rn,rup,rw,tum,tw" # Must not contain any of those 
above
 THRESHOLD="--threshold 35"
 HOURS="--hours 200" # Somewhat over a week
 
@@ -50,13 +48,6 @@
 then
        php "$EXPORTER" --target . --group='out-mathjax-*' --lang='*' --skip 
en,qqq $THRESHOLD
        php "$EXPORTER" --target . --group='out-mathjax-*' --lang qqq
-
-elif [ "$PROJECT" = "mediawiki" ]
-then
-       php "$EXPORTER" --target . --group 'core' --lang='*' --skip 
"$SKIPLANGS" --threshold 13 $HOURS &
-       php "$EXPORTER" --target . --group 'core' --lang "$FORCELANGS" $HOURS &
-       php "$EXPORTER" --target . --group 'ext-installer,mediawiki-api' 
--lang='*' --skip "$SKIPLANGS" $HOURS &
-       wait
 
 elif [ "$PROJECT" = "mediawiki-extensions" ]
 then
diff --git a/bin/repoupdate b/bin/repoupdate
index b3ac698..c657a97 100755
--- a/bin/repoupdate
+++ b/bin/repoupdate
@@ -82,12 +82,6 @@
 then
        doUpdate "$PROJECT" "$CLUPDATE" develop
 
-elif [ "$PROJECT" = "mediawiki" ]
-then
-       checkVar 'REPO_MEDIAWIKI_BRANCHES'
-       echo "$REPO_MEDIAWIKI_BRANCHES" | tr ' ' '\n' |
-               xargs -P4 -I___ "$CLUPDATE_GERRIT" "$REPO_MEDIAWIKI" 
"$DIR/$PROJECT/___" "___"
-
 elif [ "$PROJECT" = "mediawiki-extensions" ]
 then
        checkVar 'REPO_MWEXTGIT'
diff --git a/repoconfig.commit.json b/repoconfig.commit.json
index 122f54f..e8a1949 100644
--- a/repoconfig.commit.json
+++ b/repoconfig.commit.json
@@ -252,6 +252,19 @@
                        }
                }
        },
+       "mediawiki": {
+               "always-export-languages": 
"en-gb,es-formal,de-formal,hu-formal,nl-informal",
+               "no-export-languages": 
"test,aeb,be-x-old,crh,dk,en,fiu-vro,gan,gom,hif,kbd,kk,kk-cn,iu,kk-kz,kk-tr,ko-kp,ku,ku-arab,no,ruq,simple,sr,tg,tp,tt,ug,zh,zh-classical,zh-cn,zh-sg,zh-hk,zh-min-nan,zh-mo,zh-my,zh-tw,zh-yue,bbc,ady",
+               "export-hours": 200,
+               "export-threshold": 13,
+               "group": "core,ext-installer,mediawiki-api",
+               "repos": {
+                       "mediawiki/master": {
+                               "type": "wmgerrit",
+                               "url": 
"ssh://l10n-...@gerrit.wikimedia.org:29418/mediawiki/core"
+                       }
+               }
+       },
        "nfcring-control": {
                "group": "nfcring-control",
                "repos": {
diff --git a/repoconfig.json b/repoconfig.json
index 2050101..a2b98b6 100644
--- a/repoconfig.json
+++ b/repoconfig.json
@@ -247,6 +247,19 @@
                        }
                }
        },
+       "mediawiki": {
+               "always-export-languages": 
"en-gb,es-formal,de-formal,hu-formal,nl-informal",
+               "no-export-languages": 
"test,aeb,be-x-old,crh,dk,en,fiu-vro,gan,gom,hif,kbd,kk,kk-cn,iu,kk-kz,kk-tr,ko-kp,ku,ku-arab,no,ruq,simple,sr,tg,tp,tt,ug,zh,zh-classical,zh-cn,zh-sg,zh-hk,zh-min-nan,zh-mo,zh-my,zh-tw,zh-yue,bbc,ady",
+               "export-hours": 200,
+               "export-threshold": 13,
+               "group": "core,ext-installer,mediawiki-api",
+               "repos": {
+                       "mediawiki/master": {
+                               "type": "wmgerrit",
+                               "url": 
"https://gerrit.wikimedia.org/r/mediawiki/core";
+                       }
+               }
+       },
        "nfcring-control": {
                "group": "nfcring-control",
                "repos": {

-- 
To view, visit https://gerrit.wikimedia.org/r/332893
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9649dfc9f8bfd8b6fad8a32e6809ff24edbebee7
Gerrit-PatchSet: 1
Gerrit-Project: translatewiki
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <niklas.laxst...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to