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 2020/07/23 17:04:50 UTC
[whimsy] branch master updated: Log brief data on matching commits
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 7ade9f4 Log brief data on matching commits
7ade9f4 is described below
commit 7ade9f453044fe82054529fe84c2843f48a36de5
Author: Sebb <se...@apache.org>
AuthorDate: Thu Jul 23 18:04:41 2020 +0100
Log brief data on matching commits
---
tools/pubsub2rake.rb | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/tools/pubsub2rake.rb b/tools/pubsub2rake.rb
index 3d7c0fe..f39cdce 100755
--- a/tools/pubsub2rake.rb
+++ b/tools/pubsub2rake.rb
@@ -8,8 +8,8 @@ require 'thread'
require 'whimsy/asf/config'
require 'whimsy/asf/svn'
-def stamp(s)
- "%s: %s" % [Time.now.gmtime.to_s, s]
+def stamp(*s)
+ "%s: %s" % [Time.now.gmtime.to_s, s.join(' ')]
end
class PubSub
@@ -117,6 +117,10 @@ if $0 == __FILE__
path = event['pubsub_path']
if WATCH.include? path # WATCH auto-vivifies
$hits += 1
+ log = event['commit']['log']
+ id = event['commit']['id']
+ puts ""
+ puts stamp id,log,path
matches = Hash.new{|h,k| h[k] = Array.new} # key alias, value = array of matching files
watching = WATCH[path]
watching.each do |svn_prefix, svn_alias, files|