[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

SVN ViewCVS/Apache Windows Setup Quick Reference

From: John Doisneau <jdoisneau_at_gmail.com>
Date: 2005-05-11 16:11:00 CEST

Just another quickref, this time to set up ViewCVS for SubVersion on
my windows installation.



SVN ViewCVS/Apache Windows Setup Quick Reference

1) get the SVN Python bindings from subversion.tigris.org
2) install the ActivePython (www.activestate.com) version that
corresponds to those SVN python bindings (find it on
(it normally installs in c:\PythonNN where NN is the version number -
leave this directory name that way to avoid future problems)
3) copy the two directories "svn" and "libsvn" from the SVN Python
bindings into C:\PythonNN\Lib\site-packages

4) check that the Python shell can load the SVN bindings:
- launch c:\PythonNN\Python.exe
- enter "import svn.repos": it should not give any error message
(- CTRL-Z and Enter to exit Python shell)

5) get ViewCVS from http://russ.hn.org/viewcvs and unpack it to a directory
(because the version from http://viewcvs.sourceforge.net apparently
still has compatibility problems, but I may be wrong)

6) from the ViewCVS directory, perform c:\PythonNN\Python.exe
viewcvs-install (or simply add the extension .py to the
viewcvs-install file and double-click on it)

7) edit the viewcvs.conf file to have no cvs_root and have the following lines

svn_roots = RepositoryDirName: c:/path/to/parent/RepositoryDirName
root_parents = c:/path/to/parent : svn
default_root = RepositoryDirName

(this sets up path/to/parent as being the root of all SVN
repositories, with RepositoryDirName as the default repository to

8) make sure that %PATH% contains the \bin directory of your SVN installation

9) test: try to run standalone.py (or standalone.py -g if you want a
GUI interface): it should allow you to browse your repository
(no need to go further if this does not work!)

------------------ ViewCVS with Apache setup

10) add the following line to your httpd.conf file

LoadModule python_module modules/mod_python.so

11) add also the following script alias and corresponding handler:

ScriptAlias /viewcvs "C:/path/to/viewcvs/install/www/mod_python/viewcvs.py"
<location /viewcvs>
   AddHandler python-program .py
   PythonPath "[r'c:\\path\\to\\viewcvs\\install\\lib']+sys.path"
   PythonHandler apache
   PythonDebug On
   AddDefaultCharset UTF-8

12) test: launch apache and try to access localhost/viewcvs !

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 11 17:25:11 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.