Permalink
Browse files

make tooltips work

  • Loading branch information...
1 parent e430ed6 commit 22fa9a42e9be95df95545af979a28f28253da57e @cotto committed Aug 25, 2010
Showing with 5 additions and 3 deletions.
  1. +5 −3 github/github.py
View
@@ -198,12 +198,14 @@ def _git_hash_is_valid(self, git_hash):
row = cursor.execute("SELECT 1 FROM svn_revmap WHERE git_hash LIKE '%s%%';" % git_hash).fetchone()
if row:
return True
- self.env.log.debug("REJECTED HASH '%s'", git_hash)
return False
def _get_git_title(self, git_hash):
- #TODO: working code
- return "um... tooltip?"
+ cursor = self.env.get_db_cnx().cursor()
+ row = cursor.execute("SELECT commit_msg FROM svn_revmap WHERE git_hash LIKE '%s%%';" % git_hash).fetchone()
+ if row:
+ return row[0]
+ return "<no commit message>"
def processChangesetURL(self, req):
self.env.log.debug("processChangesetURL")

0 comments on commit 22fa9a4

Please sign in to comment.