Using Subversion With ViewCVS For Windows 軟件列表: Subversion Windows : http://subversion.tigris.org Apache2 2.0.* Windows : http://httpd.apache.org Python 2.3 Windows : http://www.python.org Python for Windows Extension : http://starship.python.net/crew/mhammond/win32 Python 2.3 bindings for Subversion on Win32 svn-win32-1.0.*_py.zip : http://subversion.tigris.org Mod_python Windows : http://www.modpython.org ViewCVS 1.0-dev : http://viewcvs.sourceforge.net 在開始之前,你需要安裝Subversion, Apache2, Python, Python Win32 Extension, Mod_python 把svn-win32-1.0.*_py.zip壓縮包中的libsvn, svn解壓到C:\Python23\Lib下 上面的步驟執(zhí)行完成以后,開始安裝ViewCVS,檢查path路徑中是否放了python的路徑,或者輸入python的文件夾。執(zhí)行安裝執(zhí)行腳本 C:\temp\ViewCVS>C:\Python23\python.exe viewcvs-install 輸入安裝目錄,例如g:\viewcvs Subversion檔案庫建立 G:\svn>svnadmin create lh 修改Apache配置檔,使用Module的方式來執(zhí)行,速度比cgi的要快 C:\Program Files\Apache Group\Apache2\conf\httpd.conf LoadModule python_module modules/mod_python.so ScriptAlias /view "g:/viewcvs/www/mod_python/viewcvs.py" <location /view> AddHandler python-program .py PythonPath "[r‘g:\\viewcvs\\lib‘]+sys.path" PythonHandler apache PythonDebug On AddDefaultCharset UTF-8 </location> 更改ViewCVS配置檔 G:\viewcvs\viewcvs.conf svn_roots = lh: g:\svn\lh svn_parent_path = g:\svn default_root = lh Address和language可以按照需求更改,我這里設(shè)置language=zh-CN 重啟Apache就可以了,因為Subversion在windows下的安裝有很多相關(guān)的網(wǎng)頁說明,而在windows系統(tǒng)下集成viewcvs和 subversion的說明性資料就幾乎沒有了,最后找到一個韓文的資料頁面,雖然看不懂韓文,不過大致可以明白流程,這么困難的設(shè)定好了,還是有留下一些資料好了。 還有關(guān)于subversion存取級別的設(shè)定,本來以為官方說明中htpasswd -c /etc/svn-auth-file harry里面htpasswd是linux系統(tǒng)的命令呢,沒想到是apache目錄下bin里面的一個可執(zhí)行文件,按照官方文檔里面的說明就很簡單的設(shè)定了。 原文引用 http://wiki.kldp.org/wiki.php/SubversionWithViewCVSForWindows 本文引用通告地址: http://blog.csdn.net/sunwang123456/services/trackbacks/362118.aspx |