Siebrand has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/281298

Change subject: Support Wikimedia Gerrit repos in repong with "wmgerrit" repo 
type
......................................................................

Support Wikimedia Gerrit repos in repong with "wmgerrit" repo type

Change-Id: I735029479c1d6237ce42e517b85fd7023321640d
---
M repong/repong.php
1 file changed, 8 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/translatewiki 
refs/changes/98/281298/1

diff --git a/repong/repong.php b/repong/repong.php
index 0202e6c..82fad34 100644
--- a/repong/repong.php
+++ b/repong/repong.php
@@ -21,6 +21,9 @@
                        if ( $repo['type'] === 'git' ) {
                                $branch = isset( $repo['branch'] ) ? 
$repo['branch'] : 'master';
                                $command = "$bindir/clupdate-git-repo 
'{$repo['url']}' '$base/$name' '$branch'";
+                       } elseif ( $repo['type'] === 'wmgerrit' ) {
+                               $branch = isset( $repo['branch'] ) ? 
$repo['branch'] : 'master';
+                               $command = "$bindir/clupdate-gerrit-repo 
'{$repo['url']}' '$base/$name' '$branch'";
                        } else {
                                throw new RuntimeException( 'Unknown repo rype' 
);
                        }
@@ -74,6 +77,11 @@
                                $command = "cd $dir; git add .; " .
                                        "git commit -m '$message' || :; " .
                                        "git push origin '$branch'";
+                       } elseif ( $repo['type'] === 'wmgerrit' ) {
+                               $dir = "$base/$name";
+                               $command = "cd $dir; git add .; " .
+                                       "git commit -m '$message' || :; " .
+                                       'git review -r origin -t L10n';
                        } else {
                                throw new RuntimeException( "Unknown repo type" 
);
                        }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I735029479c1d6237ce42e517b85fd7023321640d
Gerrit-PatchSet: 1
Gerrit-Project: translatewiki
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to