You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2019/02/13 20:47:59 UTC
[whimsy] branch master updated: prep for subscribing to Bills
This is an automated email from the ASF dual-hosted git repository.
rubys 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 5160c24 prep for subscribing to Bills
5160c24 is described below
commit 5160c24e4a5302137add780b69e970430079bca5
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Wed Feb 13 15:46:51 2019 -0500
prep for subscribing to Bills
---
tools/svnupdate.rb | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/tools/svnupdate.rb b/tools/svnupdate.rb
index 6890089..aaa30b4 100644
--- a/tools/svnupdate.rb
+++ b/tools/svnupdate.rb
@@ -35,5 +35,17 @@ elsif mail.subject =~ %r{^committers: r\d+ -( in)? /committers/board}
end
end
+elsif mail.subject =~ %r{^bills: r\d+ -( in)? /financials/Bills}
+
+ # 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/Bills' do
+ `svn cleanup`
+ `svn update`
+ end
+ end
+
end