Subversion – Allow Author Name Logging

| Posted by watashii | Filed under Java, Programming, Software

To log the author name when trying to check-in files using Subversive/Eclipse over SVN, switch to SVN Repository Exploring perspective > right-click on your repository > edit the Location Properties > Advanced tab > and enable Override author name:


However, the following error may occur on the SVN repository server:

svn: 'Set revision author' operation finished with error: Disabled repository feature
svn: Repository has not been enabled to accept revision propchanges;
ask the administrator to create a pre-revprop-change hook

The solution is to create a hook, ie an executable script, on the SVN repository server under the hooks directory. Create a file, named pre-revprop-change.bat (for Windows, but similar fashion on *nix) with the following commands:

@echo off
REM pre-revprop-change.bat hook script
if "%4" == "svn:author" exit /b 0
echo "Changing revision properties %4% is prohibited" >&2
exit /b 1

This will allow the author name log property (svn:author) updates to be accepted (which is rejected by default).

Share:

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Print
  • email

Tags: , , , ,

Leave a Reply