I recently installed Trac to replace a crawling WebSVN install, and wanted to keep the modified files diff links generated on the CCNet build report.

To enable this I changed the webUrlBuilder Url to…

<project name="MyProject.Trunk.Continuous">
  ...
  <sourcecontrol type="svn">
    ...
    <webUrlBuilder type="websvn">
      <url>http://trac.myserver.com/MyProject/changeset/{1}{0}</url>
    </webUrlBuilder>
  </sourcecontrol>
  ...
</project>

…which now matches the url required to show file differences in Trac.

Leave a Reply