1.1 @ 2012-09-28
Add a delay to avoid threads spinning on the empty-queue-check, eating CPU.
+ Fix a bug in reporting of multi-file commits.
+
import os, sys, commands, socket, urllib, json
-version = "1.0"
+version = "1.1"
def do(command):
return commands.getstatusoutput(command)[1]
self.rev = self.commit[:12]
# Extract the meta-information for the commit
- self.files = do("git diff-tree -r --name-only '"+ self.commit +"' | sed -e '1d' -e 's-.*-&-'")
+ self.files = do("git diff-tree -r --name-only '"+ self.commit +"'")
+ self.files = " ".join(self.files.strip().split("\n")[1:])
metainfo = do("git log -1 '--pretty=format:%an <%ae>%n%s' " + self.commit)
(self.author, self.logmsg) = metainfo.split("\n")
# This discards the part of the author's address after @.