[146888] contrib/buildbot-test/master.cfg

raimue at macports.org raimue at macports.org
Sat Mar 19 09:17:45 PDT 2016


Revision: 146888
          https://trac.macports.org/changeset/146888
Author:   raimue at macports.org
Date:     2016-03-19 09:17:45 -0700 (Sat, 19 Mar 2016)
Log Message:
-----------
Add backlinks to Trac

The revision number will be linked to the Trac changeset view,
ticket references in the log messages point to Trac as well.

Modified Paths:
--------------
    contrib/buildbot-test/master.cfg

Modified: contrib/buildbot-test/master.cfg
===================================================================
--- contrib/buildbot-test/master.cfg	2016-03-19 15:53:25 UTC (rev 146887)
+++ contrib/buildbot-test/master.cfg	2016-03-19 16:17:45 UTC (rev 146888)
@@ -455,9 +455,16 @@
 c['titleURL'] = "http://www.macports.org/"
 
 c['buildbotURL'] = buildboturl
-c['status'].append(html.WebStatus(http_port=httpport, authz=authz_cfg))
+c['status'].append(html.WebStatus(
+        http_port=httpport,
+        authz=authz_cfg,
+        changecommentlink=(r"#(\d+)", r"https://trac.macports.org/ticket/\1", r"Ticket \g<0>")
+    ))
 
+c['revlink'] = util.RevlinkMatch([r'https://svn.macports.org/repository/macports/(.*)'],
+                                  r'https://trac.macports.org/changeset/%s')
 
+
 ####### DB URL
 
 c['db'] = {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160319/165369db/attachment.html>


More information about the macports-changes mailing list