Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki-CVS

SVN: [114901] trunk/tools/gerrit-dippybird/dippy-bird.php

 

 

Wikipedia mediawiki-cvs RSS feed   Index | Next | Previous | View Threaded


awjrichards at svn

Apr 13, 2012, 3:52 PM

Post #1 of 1 (81 views)
Permalink
SVN: [114901] trunk/tools/gerrit-dippybird/dippy-bird.php

https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114901

Revision: 114901
Author: awjrichards
Date: 2012-04-13 22:52:03 +0000 (Fri, 13 Apr 2012)
Log Message:
-----------
Added support for gerrit review --restore

Modified Paths:
--------------
trunk/tools/gerrit-dippybird/dippy-bird.php

Modified: trunk/tools/gerrit-dippybird/dippy-bird.php
===================================================================
--- trunk/tools/gerrit-dippybird/dippy-bird.php 2012-04-13 22:48:22 UTC (rev 114900)
+++ trunk/tools/gerrit-dippybird/dippy-bird.php 2012-04-13 22:52:03 UTC (rev 114901)
@@ -45,6 +45,7 @@
// 'verify' => 'executeVerify',
'submit' => 'executeSubmit',
'abandon' => 'executeAbandon',
+ 'restore' => 'executeRestore',
);

public function __construct() {
@@ -127,6 +128,15 @@
$action = 'abandon';
$this->gerritReviewWrapper( $results, $action );
}
+
+ /**
+ * Execute gerrit review --restore to restore previously abandoed patchsets
+ * @param array $results
+ */
+ public function executeRestore( $results ) {
+ $action = 'restore';
+ $this->gerritReviewWrapper( $results, $action );
+ }

/**
* A wrapper around the 'gerrit review' command
@@ -355,6 +365,7 @@
actions currently include:
submit: Verify, approve, and submit changeset
abandon: Abandon changeset
+ restore: Restore previously abandoned changesets

Usage: php dippy-bird.php --username=<username> --server=<gerrit servername>
--port=<gerrit port> [--verbose] [--debug] [--help]


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Wikipedia mediawiki-cvs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.