You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sam Ruby <ru...@apache.org> on 2016/03/06 03:54:56 UTC

[whimsy.git] [1/1] Commit 986afdc: start watching for committers updates

Commit 986afdc448c1858a6658dfc51865d30d56dd0697:
    start watching for committers updates


Branch: refs/heads/master
Author: Sam Ruby <ru...@intertwingly.net>
Committer: Sam Ruby <ru...@intertwingly.net>
Pusher: rubys <ru...@apache.org>

------------------------------------------------------------
DEPLOYMENT.md                                                | ++ 
tools/svnupdate.rb                                           | +++++++++++++ -
------------------------------------------------------------
16 changes: 15 additions, 1 deletions.
------------------------------------------------------------


diff --git a/DEPLOYMENT.md b/DEPLOYMENT.md
index e912ba0..1a1fecd 100644
--- a/DEPLOYMENT.md
+++ b/DEPLOYMENT.md
@@ -39,6 +39,8 @@ The following additional steps are required to get the Whimsy VM up and running:
  * Add the following mail subscriptions:
     * Subscribe `svnupdate@whimsy-vm2.apache.org` to `board@apache.org`.
       Alternately, add it to the `board-cvs` alias.
+    * Subscribe `svnupdate@whimsy-vm2.apache.org` to 
+      `committers-cvs@apache.org`.
     * Subscribe `board@whimsy-vm2.apache.org` to `board@apache.org`.
     * Subscribe `members@whimsy-vm2.apache.org` to `members@apache.org`.
     * Add `secretary@whimsy-vm2.apache.org` to the `secretary@apache.org`
diff --git a/tools/svnupdate.rb b/tools/svnupdate.rb
index 62f701b..cafe3ad 100644
--- a/tools/svnupdate.rb
+++ b/tools/svnupdate.rb
@@ -1,5 +1,5 @@
 #
-# When mail comes in indicating that foundation/board was updated,
+# When mail comes in indicating that a repository was updated,
 # update the local working copy.
 #
 
@@ -23,5 +23,17 @@
     end
   end
 
+elsif mail.subject =~ %r{^committers: r\d+ -( in)? /committers/board}
+
+  # prevent concurrent updates being performed by the cron job
+  File.open(LOG, File::RDWR|File::CREAT, 0644) do |log|
+    log.flock(File::LOCK_EX)
+
+    Dir.chdir '/srv/svn/board' do
+      `svn cleanup`
+      `svn update`
+    end
+  end
+
 end