可能的原因:
提交代碼的SVN命令中,Comment長度短了。參考:http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-howto-minlogmsgsize.html
解決方法:
在提交的命令行的Comment中多加些字符,再提交。比如,將:
svn commit -m "XXX"
改成
svn commit -m "Add some code for Case 1"
然后再提交。就成功了。
可能原因:
排查既不是權限問題,也不是備注信息沒超過16個字符。
關鍵是這個信息“ //opt/csvn/bin/svnlook: No such file or directory”
解決方法:
1、進入服務器當前版本倉庫下的hooks目錄(一般是SVN安裝目錄/data/repositories/庫名稱/hooks)。
2、編輯文件pre-commit.tmpl,將“SVNLOOK=//opt/CollabNet_Subversion/bin/svnlook”改為svnlook所在的正確的路徑。
3、編輯文件pre-commit,將“SVNLOOK=//opt/CollabNet_Subversion/bin/svnlook”改為svnlook所在的正確的路徑。
可能原因:
被鎖
解決方法:
嘗試Clean Up,再Update,然后在Commit。
可能原因:
開始時提交的注釋為: commit -m "更改otherInfos類型為Map<String, String>"
提交時報錯:svn: Commit blocked by pre-commit hook (exit code 255) with output:
SVN並無其他錯誤,分析可能是由於注釋中包含了一些非法字符
解決方法:
把Map<String, String>去掉,注釋改為 commit -m "更改UserActionLog屬性otherInfos的類型",既可。
參考:
http://blog.csdn.net/yasi_xi/article/details/39450689(以上內容轉自此篇文章)
http://blog.sina.com.cn/s/blog_537e69fb0101bzyr.html(以上內容轉自此篇文章)
http://blog.csdn.net/zhouxingxingzxy/article/details/52607015(以上內容轉自此篇文章)