lxdme 发表于 2010-05-04 18:35

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-x7 wwwwww512 May4 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
.............................................................

renxiao2003 发表于 2010-07-27 08:53

检查一下你的1776和1777版本中的
/trunk/platform/hal/src/halp_cfg.h'
是不是有什么问题?

和其他文件相比有什么什么不同的地方,比如被锁定之类的。
页: [1]
查看完整版本: svnsync: Server sent unexpected return value (400 Bad Request)