You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2022/04/21 13:18:23 UTC

[whimsy] branch master updated: Do we really need this code?

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 87b7da73 Do we really need this code?
87b7da73 is described below

commit 87b7da737041460e58d51397368aca2d4a07757e
Author: Sebb <se...@apache.org>
AuthorDate: Thu Apr 21 14:18:16 2022 +0100

    Do we really need this code?
---
 tools/svnupdate.rb | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/tools/svnupdate.rb b/tools/svnupdate.rb
index 5d7d8ccc..6756e91a 100644
--- a/tools/svnupdate.rb
+++ b/tools/svnupdate.rb
@@ -50,14 +50,16 @@ elsif subject =~ %r{^foundation: r\d+ -} # generic foundation commit prefix
     description = svnrepos[name]
     if description
       $stderr.puts "Updating listing for #{name}"
-      old, new = ASF::SVN.updatelisting(name, nil, nil, description['dates'])
-      if old == new
-        $stderr.puts "List is at revision #{old}."
-      elsif old.nil?
-        $stderr.puts "Created list at revision #{new}"
-      else
-        $stderr.puts "List updated from #{old} to revision #{new}."
-      end
+      # This ought to be done by pubsub2rake; check that is the case by disabling the update here
+      $stderr.puts (File.open('/srv/svn/emeritus-requests-received.txt').readline.chomp rescue '??')
+      # old, new = ASF::SVN.updatelisting(name, nil, nil, description['dates'])
+      # if old == new
+      #   $stderr.puts "List is at revision #{old}."
+      # elsif old.nil?
+      #   $stderr.puts "Created list at revision #{new}"
+      # else
+      #   $stderr.puts "List updated from #{old} to revision #{new}."
+      # end
     else
       $stderr.puts "Could not find #{name} in repository.yml"
     end