svnsync: Server sent unexpected return value (400 Bad Request)

发布于 2022-09-02 10:48:49 字数 3650 浏览 6 评论 1

# 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

百合的盛世恋 2022-09-04 08:01:09

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

和其他文件相比有什么什么不同的地方,比如被锁定之类的。

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文