Skip to content

Commit

Permalink
make tooltips work
Browse files Browse the repository at this point in the history
  • Loading branch information
cotto committed Aug 25, 2010
1 parent e430ed6 commit 22fa9a4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions github/github.py
Expand Up @@ -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")
Expand Down

0 comments on commit 22fa9a4

Please sign in to comment.