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@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to