[openssl-commits] [tools] master update

Rich Salz rsalz at openssl.org
Thu May 24 00:12:42 UTC 2018


The branch master has been updated
       via  ddda55afb15458bc21187ef80397134193a8982e (commit)
      from  845c25d8db7fc784cbf92a523300376a8d69b2a1 (commit)


- Log -----------------------------------------------------------------
commit ddda55afb15458bc21187ef80397134193a8982e
Author: Rich Salz <rsalz at akamai.com>
Date:   Wed May 23 11:44:44 2018 -0400

    Add --web and --tools to support other repo's.
    
    Reviewed-by: Tim Hudson <tjh at openssl.org>
    (Merged from https://github.com/openssl/tools/pull/1t)

-----------------------------------------------------------------------

Summary of changes:
 review-tools/addrev    | 4 ++++
 review-tools/gitaddrev | 9 +++++++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/review-tools/addrev b/review-tools/addrev
index 0bd28a5..ce770f3 100755
--- a/review-tools/addrev
+++ b/review-tools/addrev
@@ -22,6 +22,10 @@ foreach (@ARGV) {
         $args .= "--rmreviewers ";
     } elsif (/^--trivial$/) {
         $args .= "--trivial ";
+    } elsif (/^--web$/) {
+        $args .= "--web ";
+    } elsif (/^--tools$/) {
+        $args .= "--tools ";
     } elsif (/^--verbose$/) {
         $args .= "--verbose ";
     } elsif (/^--noself$/) {
diff --git a/review-tools/gitaddrev b/review-tools/gitaddrev
index 2beb48a..cf041d4 100755
--- a/review-tools/gitaddrev
+++ b/review-tools/gitaddrev
@@ -21,6 +21,7 @@ my $num = 0;
 my $refuse = 0;
 my $prnum = 0;
 my $verbose = 0;
+my $WHAT = 'openssl';
 
 my $query = OpenSSL::Query->new();
 
@@ -99,6 +100,10 @@ foreach (@ARGV) {
 	try_add_reviewer($1);
     } elsif (/^--verbose$/) {
 	$verbose = 1;
+    } elsif (/^--web$/) {
+        $WHAT = 'web';
+    } elsif (/--tools$/) {
+        $WHAT = 'tools'
     }
 }
 
@@ -189,7 +194,7 @@ my $last_is_rev = 0;
 foreach (@commit_message) {
     # Start each line with assuming it's not a reviewed-by line
     $last_is_rev = 0;
-    if (/^\(Merged from https:\/\/github\.com\/openssl\/openssl\/pull\//) {
+    if (/^\(Merged from https:\/\/github\.com\/openssl\/$WHAT\/pull\//) {
         next if $rmrev == 1;
         $last_is_rev = 1;
         next;			# Because we're rewriting it below
@@ -211,5 +216,5 @@ if ($rmrev == 0) {
     }
 }
 
-print "(Merged from https://github.com/openssl/openssl/pull/$prnum)\n"
+print "(Merged from https://github.com/openssl/$WHAT/pull/$prnum)\n"
     if $prnum;


More information about the openssl-commits mailing list