『漫游』酷论坛>『影音数码技术学习交流』>解决SVN安装后无法编 ..
解决SVN安装后无法编辑注释问题
FalconIA@2006-10-30 07:18
通常安装后
当编辑注释时会提示
- DAV request failed; it's possible that the reprository's pre-revprop-change hook either faild or is non-existent
- At least one property change failed; repository is unchanged
经过查找资料后发现,这是因为没有添加hooks
在库里面hooks\pre-revprop-change.tmpl是Unix的例子
(Here is an example hook script, for a Unix /bin/sh interpreter.)
这里就给出windows下的hooks的范例
建立pre-revprop-change.cmd或者pre-revprop-change.bat
- @ECHO OFF
-
-
- set repos=%1
- set rev=%2
- set user=%3
- set propname=%4
- set action=%5
-
- if /I not '%propname%'=='svn:log' goto ERROR_PROPNAME
-
- if /I not '%action%'=='M' goto ERROR_ACTION
-
- set bIsEmpty=true
- for /f "tokens=*" %%g in ('find /V ""') do set bIsEmpty=false
- if '%bIsEmpty%'=='true' goto ERROR_EMPTY
-
- goto :eof
-
-
- :ERROR_EMPTY
- echo Empty svn:log properties are not allowed. >&2
- goto ERROR_EXIT
-
- :ERROR_PROPNAME
- echo Only changes to svn:log revision properties are allowed. >&2
- goto ERROR_EXIT
-
- :ERROR_ACTION
- echo Only modifications to svn:log revision properties are allowed. >&2
- goto ERROR_EXIT
-
- :ERROR_EXIT
- exit /b 1
Enjoy it!
转载请注明版权为FalconIA所有
原文地址: http://falconia.ca/blog/read.php/28.htm
MeteorRain@2006-10-30 10:33
在想这贴是不是应该贴在字幕交流那边 LOL
总之推一个,赞
zhouwei_e@2006-10-30 11:34
这里变相地成为综合技术区了,大致和技术靠边的都扔这了,呵呵~
保不准那个人用SVN下编码器代码自己修改哇,咔咔~~
dizyh@2006-10-30 19:03
这也算是字幕制作校正专用的专业级平台吧?虽然它是为程序的版本控制而定^0^
FalconIA@2006-10-31 00:06
顺手而已 我知道没人看的...
| TOP