You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Rob Clark <ro...@mac.com> on 2002/12/30 06:18:10 UTC

subversion and scarab integration

All,

ScmHandler.path:
    A patch to scarab to add some methods which can be called (via 
xml-rpc) by a svn pre-commit hook.  These shouldn't be svn specific, so 
this could probably work with cvs or other version control system.  
This is based on some stuff I found in the mailing list archive from 
Stephen Haberman.  There are some still some things I'm not grok'ing 
about scarab's caching, so this will only work with 
scarab.torque.manager.cache=false (in build/default.properties).  
Anyone care to give me a clue about how to not get cached comment 
values after addComment()?

ChangePassword.patch:
    A patch to scarab to use htpasswd to update the password file used 
by apache to control access to the repository.  So user's login and 
password are the same for both scarab and subversion.  This patch is 
pretty site specific (hard coded paths)

PreCommitHook.java & pre-commit:
    the pre-commit hook for subversion... only permits checkins on 
branches (ie /branches/<ISSUE-ID>) for issues assigned to that user 
which have Status=Assigned.  For commits which are permitted, a comment 
is added to the issue which lists the author, files changed, new 
repository version, and commit log message.  The pre-commit script 
bypasses the check for the user "svnadmin"... change this to whatever 
it needs to be so someone can merge back to the trunk.  You will need 
xmlrpc-1.1.jar which you can get from 
http://xml.apache.org/dist/xmlrpc/release/v1.1/