svnsync: Server sent unexpected return value (400 Bad Request)
# subversion mirror
SOURCE_HOST: old.xxx.com
DEST_HOST: dev.xxx.com
SOURCE_URL: http://old.xxx.com/svn/developing/
DEST_URL : http://dev.xxx.com/svn/developing/
#
# on DEST_HOST dev.xxx.com
dev#
dev# cd /home/svn_mirror/repos/
dev#
dev# /usr/local/bin/svnadmin create --fs-type fsfs /home/svn_mirror/repos/developing
dev#
dev# chown -R www:www developing
dev#
dev# ll
total 2
drwxr-xr-x 7 www www 512 May 4 17:44 developing
dev#
dev# cd developing/hooks/
dev#
dev# cp -v pre-revprop-change.tmpl pre-revprop-change
pre-revprop-change.tmpl -> pre-revprop-change
dev#
dev# vi pre-revprop-change
----------------------------------------------------------------------------------------------------
#!/bin/sh
REPOS="$1"
REV="$2"
USER="$3"
PROPNAME="$4"
ACTION="$5"
#if [ "$ACTION" = "M" -a "$PROPNAME" = "svn:log" ]; then exit 0; fi
#echo "Changing revision properties other than svn:log is prohibited" >&2
#exit 1
if [ "$USER" = "syncuser" ]; then exit 0 ; fi
echo "Only the syncuser user may change revision properity as this is a read-only, mirror repository" >&2
exit 1
----------------------------------------------------------------------------------------------------
pre-revprop-change: 69 lines, 2926 characters.
dev#
dev# chmod +x pre-revprop-change
dev#
# svnsync initialize
dev#
dev# /usr/local/bin/svnsync initialize http://dev.xxx.com/svn/developing/ http://old.xxx.com/svn/developing/ --username syncuser --password syncpasswd
Copied properties for revision 0.
dev#
# svnsync synchronize
dev# /usr/local/bin/svnsync synchronize http://dev.xxx.com/svn/developing/ --username syncuser --password syncpasswd
Committed revision 1.
Copied properties for revision 1.
Committed revision 2.
Copied properties for revision 2.
................................
Committed revision 1776.
Copied properties for revision 1776.
Transmitting file data .svnsync: At least one property change failed; repository is unchanged
svnsync: Server sent unexpected return value (400 Bad Request) in response to PROPPATCH request for '/svn/developing/!svn/wrk/95bae5d0-5757-df11-83e5-001a4d45540f/trunk/platform/hal/src/halp_cfg.h'
dev#
# error
................................
Transmitting file data .svnsync: At least one property change failed; repository is unchanged
svnsync: Server sent unexpected return value (400 Bad Request) in response to PROPPATCH request for '/svn/developing/!svn/wrk/95bae5d0-5757-df11-83e5-001a4d45540f/trunk/platform/hal/src/halp_cfg.h'
#
以上,搜索网贴,始终无解,请教各位
# troubleshooting
.............................................................
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查一下你的1776和1777版本中的
/trunk/platform/hal/src/halp_cfg.h'
是不是有什么问题?
和其他文件相比有什么什么不同的地方,比如被锁定之类的。