There were a lot of installation steps, since it requires setting up Subversion in Apache in addtion to the Trac server itself. There is plenty of documentation how to do this, but I found a handy guide by David Winter that gets right to the point.
One small change I made is using SVNParentPath, with multiple repos under /var/lib/svn, e.g.
DAV svn
SVNParentPath /var/lib/svn
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
I installed Trac (version 0.12.2-1build1) using apt-get.
Evaluation of some software peer review plugins for Trac:
PeerReviewPlugin: installed from the downloaded source zip file and followed the standard Trac plugin install instructions. When I attempted to open a new review I got the error "'NoneType' object has no attribute 'youngest_rev'". There was already a ticket - 7034 - for this issue and the multiple-repo.patch seems to address the problem. But when creating a new code review ... how to easily add the files based on a diff or a changeset? like the line by line comments though.
I want to see the files committed in conjunction with the ticket ... TicketModifiedFilesPlugin ...
but only worked on some tickets references?
Try CommitTicketUpdater and follow the instructions to enable the component.
Appears to setup correctly, but no information is added to tickets.
Tried some advice from the webs (maybe wasn't necessary after all?):
However, the updater requires the changeset author to have TICKET_MODIFY
permission to close tickets. If your commit username is different from
your Trac username, you will not have the required permission. So you
should disable that check by setting the "[ticket]
commit_ticket_update_check_
... because stupid me not properly "wikifying" my tag ... brackets dummy ... [re #4]
And then all is working after one more edit to the post-commit script:
# The Python egg cache directory is currently set to:
# /var/www/.python-eggs
export PYTHON_EGG_CACHE="/var/lib/trac"
CodeReviewerPlugin: ok .. simple ... no line by line comments. But get an error when try to submit the code review.
AttributeError: 'NoneType' object has no attribute 'get_changeset'
No comments:
Post a Comment