SVN commit 後預設是不能修改 log message。
修改 log message 會出現錯誤訊息:
DAV request failed; it's possible that the repository's pre-revprop-change hook either failed or is non-existent
At least one property change failed; repository is unchanged
解法:
For Windows:
在 hooks目錄下新增 pre-revprop-change.bat,檔案內容如下。
rem Only allow log messages to be changed.
if "%4" == "svn:log" exit 0
echo Property '%4' cannot be changed >&2
exit 1
For Linux:
在 hooks目錄下新增 pre-revprop-change 並 chmod 755,檔案內容如下。
REPOS="$1"
REV="$2"
USER="$3"
PROPNAME="$4"
if [ "$PROPNAME" = "svn:log" ]; then exit 0; fi
exit 1
參考:
http://wmhuang.pixnet.net/blog/post/18657530-subversion-%E4%B8%8D%E8%83%BD%E4%BF%AE%E6%94%B9%E7%B4%80%E9%8C%84%E8%A8%8A%E6%81%AF
沒有留言:
張貼留言