我在eclipse用svn提交新添和修改过的文件和文件夹,提交失败,说是其中一些文件无法提交。很急!错误如下

Some of selected resources were not committed.
svn: Commit failed (details follow):
svn: At least one property change failed; repository is unchanged
一遍遍地交之后,终于交上了,不过还是不知道到底什么原因。

修改以前的log message的时候报错:
DAV 请求失败;可能是版本库的 pre-revprop-change 钩子执行失败或者不存在,至少有一个属性变更失败;版本库未改变
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

原因是:SVN提交时输入的log message默认是不可以修改的,不过可以修改pre-revprop-change文件来达到这个目的:
# cd /svnroot/test/hooks
# cp pre-revprop-change.tmpl pre-revprop-change
# vi pre-revprop-change
在末尾删除原来的,添加上以下参数
EPOS="$1"
REV="$2"
USER="$3"
PROPNAME="$4"

if [ "$PROPNAME" = "svn:log" ]; then exit 0; fi
exit 1

# chmod a+x pre-revprop-change //添加可执行权限给pre-revprop-change

当然,最简单的方式是创建一个空白的pre-revprop-change文件放到版本库的hooks目录下,但是这种方式不够严格,用户具备了修改所有属性的权利,例如修改作者的权利(可以提交垃圾然后栽赃嫁祸了)。
温馨提示:答案为网友推荐,仅供参考
相似回答