Try VisualSVN Server 3.1-alpha2 with the new web interface for Subversion repositories.

The next version of VisualSVN Server will provide a rich web interface for Subversion repositories. Download and install the current pre-release version of VisualSVN Server 3.1.



Note
Note

We do not technically support Trac plug-in for VisualSVN Server. Please note that Trac plugin for VisualSVN Server was never released officially and you can use it on your own risk.

The unofficial Trac plug-in is not available for VisualSVN Server 3.0 and newer versions. We do not plan to update the plug-in in the future.

  1. Download VisualSVN Server 2.7.x.
  2. Install it using default settings.
  3. Create repository "MyProject" in VisualSVN Server Manager.
  4. Create at least one user if you use Subversion authentication.
  5. Download VisualSVN-Server-2.6.4.45142-Trac-0.12.3.zip (~17MB).
  6. Unzip it to %VISUALSVN_SERVER% folder
  7. Create folder C:\Trac
  8. Allow "Full Control" access to C:\Trac folder for built-in Network Service account (or other account that is used to run VisualSVN Server's service).
  9. Execute command:
    "%VISUALSVN_SERVER%trac\trac-admin.bat" C:\Trac\MyProject initenv
    Use default settings. Provide C:\Repositories\MyProject as repository path.
  10. Execute the following command to add MyProject Subversion repository to the Trac:
    "%VISUALSVN_SERVER%trac\trac-admin.bat" c:\Trac\MyProject repository add MyProject C:\Repositories\MyProject svn
  11. Add the following command to the MyProject repository post-commit hook:
    @"%VISUALSVN_SERVER%trac\trac-admin.bat" C:\Trac\MyProject changeset added "%1" "%2"
  12. Add the following command to the MyProject repository post-revision property change hook:
    @"%VISUALSVN_SERVER%trac\trac-admin.bat" C:\Trac\MyProject changeset modified "%1" "%2"
  13. Add system variable:
    PYTHONHOME=C:\Program Files (x86)\VisualSVN Server\trac\python
    The path may be different depending on where VisualSVN Server is installed. Please check the %VISUALSVN_SERVER% environment variable for a hint.
  14. Add the following text to file %VISUALSVN_SERVER%conf\httpd-custom.conf if you use Subversion authentication:
    LoadModule python_module "trac/python/mod_python_so.pyd"
    LoadModule authz_user_module bin/mod_authz_user.so
    <Location /trac>
      SetHandler mod_python
      PythonInterpreter main_interpreter
      PythonHandler trac.web.modpython_frontend
      PythonOption TracEnvParentDir C:\Trac
      PythonOption TracUriRoot /trac
    
      AuthName "Trac"
      AuthType Basic
      AuthBasicProvider file
      AuthUserFile "C:/Repositories/htpasswd"
    
      Require valid-user
    </Location>
    or this text if you use Windows authentication:
    LoadModule python_module "trac/python/mod_python_so.pyd"
    LoadModule authz_user_module bin/mod_authz_user.so
    <Location /trac>
      SetHandler mod_python
      PythonInterpreter main_interpreter
      PythonHandler trac.web.modpython_frontend
      PythonOption TracEnvParentDir C:\Trac
      PythonOption TracUriRoot /trac
    
      AuthName "Trac"
      AuthType VisualSVN
    
      # Set the option's value to on if Windows Basic Authentication
      # is enabled, otherwise set it to off.
      AuthnVisualSVNBasic on
    
      # Set the option's value to on if Windows Integrated Authentication
      # (available in the Enterprise Edition) is enabled, otherwise set it to off.
      AuthnVisualSVNIntegrated on
    
      Require valid-user
    </Location>
  15. Stop and then Start VisualSVN Server.
  16. Open http://localhost/trac/ or https://localhost/trac/ (if you setup secure connections) in a browser and enter user name and password.