Note
Currently 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.
We do not plan to update the plug-in on a regular basis.
-
Download VisualSVN Server 2.6.4 or later.
- Install it using default settings.
- Create repository "MyProject" in VisualSVN Server Manager.
- Create at least one user if you use Subversion authentication.
- Download
VisualSVN-Server-2.6.4.45142-Trac-0.12.3.zip (~17MB).
- Unzip it to %VISUALSVN_SERVER% folder
- Create folder C:\Trac
-
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).
-
Execute command:
"%VISUALSVN_SERVER%trac\trac-admin.bat" C:\Trac\MyProject initenv
Use default settings. Provide C:\Repositories\MyProject as repository path.
-
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
-
Add the following command to the MyProject repository post-commit hook:
@"%VISUALSVN_SERVER%trac\trac-admin.bat" C:\Trac\MyProject changeset added "%1" "%2"
-
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"
-
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.
-
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>
-
Stop and then Start
VisualSVN Server.
-
Open http://localhost/trac/
or https://localhost/trac/
(if you setup secure connections)
in a browser and enter user name and password.
|