[MediaWiki-commits] [Gerrit] translatewiki[master]: Move mediawiki to repong

2017-01-18 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. ( 
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(+), 47 deletions(-)

Approvals:
  jenkins-bot: Verified
  Nikerabbit: Looks good to me, approved



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..0461021 100755
--- a/bin/repocreate
+++ b/bin/repocreate
@@ -13,12 +13,6 @@
 
 echo "$(date --rfc-3339=seconds --utc) [$(whoami) at $DIR] $0 $@" >> ${DIRLOG}
 
-
-if [ "${REPO_RW:-no}" = "yes" ]
-then CLUPDATE_GERRIT="$DIRSCRIPT/clupdate-gerrit-repo";
-else CLUPDATE_GERRIT="$DIRSCRIPT/clupdate-git-repo";
-fi
-
 checkVar() {
if [ -z "${!1}" ]
then echo "Add ${1} to REPOCONF"; exit 1
@@ -47,16 +41,6 @@
cd ${MODULE}
bzr pull --remember `bzr info |grep "checkout of branch" |cut 
-d" " -f 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" ]
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 &
-   wa

[MediaWiki-commits] [Gerrit] translatewiki[master]: Move mediawiki to repong

2017-01-18 Thread Nikerabbit (Code Review)
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