Fix linking.
authorBenjamin Smedberg <benjamin@smedbergs.us>
Mon, 22 Dec 2008 17:19:31 -0500
changeset 10 80fc943e21cf
parent 9 1e34d76ac686
child 11 240e28622925
push id5
push userbsmedberg@mozilla.com
push date2008-12-22 22:19 +0000
Fix linking.
warningstep.py
--- a/warningstep.py
+++ b/warningstep.py
@@ -119,17 +119,17 @@ class WarningParserStep(ShellCommand):
 
         db.commit()
 
         # A list of line to stick in the comparison log
         comparison = []
 
         cur.execute('SELECT sum(count) FROM warnings WHERE buildnumber = ?', (buildnumber,))
         wcount, = cur.fetchone()
-        comparison.append('<a href="http://office.smedbergs.us:8080/build?id=%i">TinderboxPrint:warn:%i</a>' % (buildnumber, wcount))
+        comparison.append('TinderboxPrint:<a href="http://office.smedbergs.us:8080/build?id=%i">warn:%i</a>' % (buildnumber, wcount))
 
         cur.execute('SELECT max(buildnumber) FROM builds WHERE buildnumber < ?', (buildnumber,))
         r = cur.fetchone()
         if r is None:
             comparison.append('no prior build found: skipping comparison')
         else:
             prevbuildnumber, = r
 
@@ -166,17 +166,17 @@ class WarningParserStep(ShellCommand):
                     if blametype == 'cvs':
                         out += ' -  http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/%s&rev=HG_REPO_INITIAL_IMPORT&mark=%s#%s' % (blamefile, blameline, blameline)
                     elif blametype == 'hg':
                         out += ' - http://hg.mozilla.org/mozilla-central/annotate/%s/%s#l%i' % (blamerev, blamefile, blameline)
 
                     comparison.append(out)
 
         if wnewcount > 0:
-            comparison.append("TinderboxPrint:warn-new:%i" % wnewcount)
+            comparison.append('TinderboxPrint:<a href="http://office.smedbergs.us:8080/build?id=%i">warn-new:%i</a>' % (buildnumber, wnewcount))
 
         self.addCompleteLog('comparison', '\n'.join(comparison))
 
         cur.close()
         db.close()
 
     def evaluateCommand(self, cmd):
         if cmd.rc != 0: