所以我有这个了一些问题的设置。 让我解释。
我在我的d三个文件:\ SVN \钩文件(d:\是不是Windows驱动器)
后commit.bat
TRAC - 后提交,hook.cmd
TRAC - 后提交钩
我已经安装在d的commit.bat后的文件:\ SVN \钩具有下列文件
%~dp0\trac-post-commit-hook.cmd %1 %2
在我的trac -后提交,hook.cmd -我有
@ECHO OFF
::
:: Trac post-commit-hook script for Windows
::
:: Contributed by markus, modified by cboos.
:: Usage:
::
:: 1) Insert the following line in your post-commit.bat script
::
:: call %~dp0\trac-post-commit-hook.cmd %1 %2
::
:: 2) Check the 'Modify paths' section below, be sure to set at least TRAC_ENV
:: ----------------------------------------------------------
:: Modify paths here:
:: -- this one *must* be set
SET TRAC_ENV=D:\trac\project
:: -- set if Python is not in the system path
SET PYTHON_PATH=D:\trac\Python25
:: -- set to the folder containing trac/ if installed in a non-standard location
SET TRAC_PATH=D:\trac\Python25\Lib\site-packages\trac
:: ----------------------------------------------------------
:: Do not execute hook if trac environment does not exist
IF NOT EXIST %TRAC_ENV% GOTO :EOF
set PATH=%PYTHON_PATH%;%PATH%
set PYTHONPATH=%TRAC_PATH%;%PYTHONPATH%
SET REV=%2
Python "%~dp0\trac-post-commit-hook" -p "%TRAC_ENV%" -r "%REV%"
从它就是标准的脚本-在我的trac -后提交钩文件http://trac.edgewall.org/browser/trunk/contrib/trac-post-commit-hook?rev=920
== ==问题
当我运行在命令提示符,commit.bat后 - 它工作得很好 - 也不会产生错误。
然而,当我犯的SVN东西测试票我在Trac的创建 - #1固定。 - 关于Trac系统未发生任何变化。 没有更新的。
当我改变“的trac - 后提交钩”到“trac-post-commit-hook.py”和d运行:\ SVN \吊钩\ python的trac-post-commit-hook.py我得到
File "trac-post-commit-hook.py", line 104, in <module>
os.environ{'PYTHON_EGG_CACHE'] = os.path.join(options.project, '.egg-cache')
File "D:\trac\Python25\lib\ntpath.py", line 90, in join
assert len(path) > 0
TypeError: object of type 'NoneType' has no len()
我很茫然,什么是真正的问题呢? 任何人都可以提供任何帮助?