Log brief data on matching commits
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 '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 @@
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|