From 0ef5fd929052ac1080030e5e048b042bf15a91ca Mon Sep 17 00:00:00 2001 From: Christoph Otto Date: Mon, 30 Aug 2010 21:45:16 -0700 Subject: [PATCH] add tooltip support to the github hook --- github/hook.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/github/hook.py b/github/hook.py index 8f93d21..e285d02 100644 --- a/github/hook.py +++ b/github/hook.py @@ -105,6 +105,10 @@ def process(self, commit, status): msg = "%s \n %s" % (msg, note) author = commit['author']['name'] timestamp = datetime.now(utc) + if self.enable_revmap: + cursor = self.env.get_db_cnx().cursor() + cursor.execute("INSERT INTO svn_revmap (svn_rev, git_hash, commit_msg) VALUES (0, %s, %s);", + (commit['id'], commit['message')) cmd_groups = command_re.findall(msg) self.env.log.debug("Function Handlers: %s" % cmd_groups)